View Single Post
Posts: 43 | Thanked: 45 times | Joined on Jun 2010 @ Sweden
#371
Originally Posted by reinob View Post
4) export PAGER=less

You can put that in /etc/profile (or put a script on /etc/profile.d, etc.)
Otherwise man will use more. Basically man does:

zcat page.gz | gtbl | nroff -Tlatin1 -mandoc 2>&1 | $PAGER

where PAGER is "more" if undefined. However busybox's "more" behaves weird (or perhaps it's libvte's fault, I use the one from CSSU). less works much better, and is more comfortable to use.
Yep, or if you would like to disable wordwrap: export MANPAGER='less -S'

For me the page width is too wide (by approx. 5 characters) for the current font size, and have to disable wordwrap to not get just a couple of characters on a single line. Optimally man should format the pages according to terminal width, but haven't mananged to do this for this version of man. I've looked into this a bit and I assume you could "fix" it if you could get man to read a custom config file. For the regular man (for instance the one in Easy Debian), you can pass along a config file using "man -C <config file>" or put a config file "man.conf" in the default location /etc/.

Does anyone know if BusyBox Power's (limited) version of man attempts to read from a config file by default since you can't specify it?
 

The Following 2 Users Say Thank You to sowwhatyoureap For This Useful Post: