Another problem with the gentoo system upgrade (or destruction, depending on the way you look at it) is that now man pages are formatted incorrectly. They look like this: (from man man):
ESC[1mSynopsisESC[om
and so on... lots of ESC's and I presume control characters. Obviously this is a bug, but I don't know who's bug it is- would it be the man programs or some other program that formats it to display?
Ricardo Santos Campos ricardo@corez23.com sed:
Another problem with the gentoo system upgrade (or destruction, depending on the way you look at it) is that now man pages are formatted incorrectly. They look like this: (from man man):
ESC[1mSynopsisESC[om
and so on... lots of ESC's and I presume control characters. Obviously this is a bug, but I don't know who's bug it is- would it be the man programs or some other program that formats it to display?
This is a terminal problem of some kind, probably not one with man. Check that your TERM environment variable is set correctly.
lewis
This is a terminal problem of some kind, probably not one with man. Check that your TERM environment variable is set correctly.
OK- silly question now. Where is the TERM environment set? It's not in any of the .bashrc files, or in /etc/profile.env. This is on a gentoo system btw.
Ricardo
Ricardo Santos Campos ricardo@corez23.com sed:
This is a terminal problem of some kind, probably not one with man. Check that your TERM environment variable is set correctly.
OK- silly question now. Where is the TERM environment set? It's not in any of the .bashrc files, or in /etc/profile.env. This is on a gentoo system btw.
Normally, it's set automatically by your terminal. Override it in any of the places you mentioned, if so required. Also, it could also be a broken termcap database (/etc/termcap) which is causing these problems.
Ricardo
lewis
The lovely bug-handlers at Gentoo already know about it, it seems. It's actually a bug with groff 1.18.1. To fix it I had to: export PAGER='/bin/more'
Something to do with the way groff 1.18.1 interacts with less. So, now I have adequate man pages, but obvioulsy using less is a wee bit nicer. Thanks for the help!
On 24 Jan 2003 18:52:00 +0000 Ricardo Santos Campos ricardo@corez23.com wrote:
This is a terminal problem of some kind, probably not one with man. Check that your TERM environment variable is set correctly.
OK- silly question now. Where is the TERM environment set? It's not in any of the .bashrc files, or in /etc/profile.env.
This is a very interesting question. My experience with HP-UX lead me, like you, to look in the system wide login profiles but it seems Linux (Debian) does things better than that.
After some experimenting I have found that the init process sets TERM to 'linux' which then gets inherited through getty and login to your login shell. That copes with the console virtual terminals - terminal emulator programs like xterm, gnome-terminal etc set it to whatever they emulate before starting the shell and telnetd and sshd set it to whatever the client end claims to have.
So, the only case that isn't handled well is modem-based dialup but that is probably rather rare these days.
Steve.
Lewis Collard lewis@zquack.net wrote:
Check that your TERM environment variable is set correctly.
Possibly man.conf or LANG or an LC_* variable could be wrong, too.