in reply to strange output characters from perldoc
G'day dbae,
I have the same problem using Mac OS X 10.7.3 and Perl 5.14.2 with the Mac application Terminal. I've used a number of different OSes over the years and haven't seen this issue previously: this suggests a Mac OS X problem; although, it could be related to just the perldoc implementation on Mac OS X.
I use ANSI escape codes in $PS1 and $PS2 and these seem to work perfectly. From my .bash_profile:
PS1='\[\033[0;36m\]\u@\h: \w\n\$ \[\033[0m\]' PS2='\[\033[0;36m\]> \[\033[0m\]'
While fixing this is on my TODO list, it has a fairly low priority as I tend to use http://perldoc.perl.org in preference to the commandline perldoc. Looking for a quick fix some months ago, I investigated $TERM values (suggested above) as well as $LANG and $LC_* (locale) values. I didn't find a solution in whatever timeframe I allotted but these are areas I would be researching further in the future: perhaps that's of some use to you.
-- Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: strange output characters from perldoc
by Anonymous Monk on May 15, 2013 at 02:02 UTC | |
by kcott (Archbishop) on May 15, 2013 at 03:26 UTC | |
by Anonymous Monk on Feb 26, 2015 at 06:15 UTC | |
Re^2: strange output characters from perldoc
by Anonymous Monk on May 01, 2012 at 06:45 UTC |