POD docs and ANSI escapes

S

Sisyphus

Hi,
On my linux box 'perldoc' (but not 'man') is failing to interpret the
ANSI escapes. How do I remedy this ?

I'm seeing:
ESC[1mNAMEESC[0m
instead of:
NAME

(Is this answered in the faq somewhere ? I have a feeling it is, but
couldn't find it.)

Cheers,
Rob
 
J

James Willmore

Hi,
On my linux box 'perldoc' (but not 'man') is failing to interpret
the ANSI escapes. How do I remedy this ?

I'm seeing:
ESC[1mNAMEESC[0m
instead of:
NAME

(Is this answered in the faq somewhere ? I have a feeling it is, but

couldn't find it.)

The "quick fix" is to run perldoc with the '-t' option.

I tend to remember having the same issue, but it was a _long_ time
ago. I _think_ you _may_ have to change the language setting to
something more "sane" (like en_US). Do an 'echo $LANG' if in bash to
see what it's set to now. However, I could be wrong about this.

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
I'm a Lisp variable -- bind me!
 
S

Steve Grazzini

James Willmore said:
Hi,
On my linux box 'perldoc' (but not 'man') is failing to interpret
the ANSI escapes. How do I remedy this ?

I'm seeing:
ESC[1mNAMEESC[0m
instead of:
NAME

(Is this answered in the faq somewhere ? I have a feeling it is, but

couldn't find it.)

The "quick fix" is to run perldoc with the '-t' option.

You can also set the LESS environment variable to "-r".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top