perldoc's formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found the answer to my own question.
    
Excerpt of my message (sent 11 March 2003):
> Since I upgraded to RH 8.0, perldoc is acting weird.  You see, e.g.,
>    the $year element is ESC[4mnotESC[24m simply the last two digits
> (letters 'ESC' in reverse video), where "not" should just be bold.


The reason is that 'less' has changed slightly in 8.0 (wrt. 7.1).
>From the 'man less' page:

       -r or --raw-control-chars
              Causes "raw" control characters to be displayed.  The default is
              to display control characters  using  the  caret  notation;  for
              example, a control-A (octal 001) is displayed as "^A".
              [...]
       -R or --RAW-CONTROL-CHARS
              Like -r, but tries to keep track of the screen appearance  where
              possible. 

And I had my environment variable PAGER set to 'less'.  Changing it to
'less -R' (--RAW-CONTROL-CHARS) fixes perldoc.

  Christian



-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux