Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-06-2008, 11:33 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
Arrow 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


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:

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   
PAGER           /usr/bin/less -isr
CAT             /bin/cat
Old 03-06-2008, 12:39 PM   #2
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
What is the value of your TERM environment variable?

Does this help?
export TERM=xterm
Old 03-06-2008, 06:19 PM   #3
LQ Newbie
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Oops -- found the answer. In /.bashrc the line
export  PAGER="less"
should be

export  PAGER="less -r"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
puzzled by grepping on man output -- some strings found, others not tphyahoo Linux - Software 5 11-19-2006 02:17 PM
Logs - how are they handled TL_CLD Slackware 2 09-15-2006 04:43 PM
[SOLVED] [vi|man|less] covers/erases previous screen output zedmelon Linux - Software 4 01-10-2005 07:11 PM
howto mirror a man page correctly bronko Linux - Newbie 2 03-15-2004 11:05 AM
The man pages are not shown correctly Stefan Moens Linux - Newbie 2 12-06-2002 01:29 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration