View previous topic :: View next topic |
Author |
Message |
frogb n00b
Joined: 21 Sep 2003 Posts: 50
|
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Aug 16, 2008 9:47 pm Post subject: |
|
|
Not an answer to your question, but I'm using vimmanpager, you could look into that. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
frogb n00b
Joined: 21 Sep 2003 Posts: 50
|
Posted: Sat Aug 16, 2008 11:06 pm Post subject: |
|
|
I didn't know about vimpager but it still has problems with colors. I might try it later.
I copied /etc/man.conf from the other computer and now it works. Part of the diff is:
Code: | -NROFF /usr/bin/nroff -mandoc
+NROFF /usr/bin/nroff -Tascii -c -mandoc
-BROWSER /usr/bin/less -is
-HTMLPAGER /bin/cat
+BROWSER /usr/bin/lynx
+HTMLPAGER /usr/bin/lynx -dump
-COMPRESS /usr/bin/lzma
-COMPRESS_EXT .lzma
+COMPRESS /bin/bzip2
+COMPRESS_EXT .bz2
-.lzma /usr/bin/unlzma -c -d
+.lzma |
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9711 Location: almost Mile High in the USA
|
Posted: Wed Aug 20, 2008 10:00 pm Post subject: |
|
|
Found a new solution to this old problem of man apparently generating illegible ANSI sequences.
Seems that the new default for nroff is to generate ANSI codes. And old systems tend to have a LESS environment variable defined to something other than the system default.
The system default is to include -R into the LESS environment variable, which will cause less(1) to interpret ANSI codes, and generate proper coloring.
Add -R to your LESS environment variable to fix the issue. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|