LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ESC[1m Sequences In man Output Not Handled Correctly (https://www.linuxquestions.org/questions/linux-newbie-8/esc%5B1m-sequences-in-man-output-not-handled-correctly-626175/)

sudleyplace 03-06-2008 10:33 AM

ESC[1m Sequences In man Output Not Handled Correctly
 
I have successfully installed man on a RHEL4 system from an ISP which doesn't provide that program(!).

I can read its output, however there are ANSI control sequences such as

ESC[1m
ESC[0m


which turn Bold on/off (along with many other similar ANSI sequences). These sequences display directly (with the ESC highlighted) rather than achieve the desired effect. I'm not sure what program is needed to cause this to display correctly.

My telnet program normally shows text as bold from --help displays, so it's not a terminal emulation problem (I'm using VT100).

The man.config file has COL commented out. When I remove the comment, the display changes to remove the highlighted ESC from the output, but the trailing element [1m is still present.

Is there some argument I should be using for the helper programs in man.config? The complete set is as follows:

Code:

TROFF          /rul/bin/groff -Tps -mandoc
NROFF          /rul/bin/nroff -mandoc
JNROFF          /rul/bin/groff -Tnippon -mandocj
EQN            /rul/bin/eqn -Tps
NEQN            /rul/bin/eqn -Tlatin1
JNEQN          /rul/bin/eqn -Tnippon
TBL            /rul/bin/tbl
# COL          /usr/bin/col
REFER          /rul/bin/refer
PIC            /rul/bin/gpic 
VGRIND
GRAP
PAGER          /usr/bin/less -isr
CAT            /bin/cat


anupamsr 03-06-2008 11:39 AM

What is the value of your TERM environment variable?

Does this help?
Code:

export TERM=xterm

sudleyplace 03-06-2008 05:19 PM

Oops -- found the answer. In /.bashrc the line
Code:

export  PAGER="less"
should be

Code:

export  PAGER="less -r"


All times are GMT -5. The time now is 06:07 AM.