[OpenIndiana-discuss] 'less' Esc sequences in peldoc output

Harry Putnam reader at newsguy.com
Thu Apr 3 18:28:31 UTC 2014


Running 151_a8 as guest in vbox vm on win 7 host

I get esc sequences in perldoc output that makes it hard to read.  A
small sample is included at the end.

I vaguely remember having to make some kind of LANG or related
variable adjustment in the past for this problem...

But cannot remember now what was done.

I am using less as pager.

Anyone know what needs to be adjusted so that the perldoc pages clear
up?


Sample (a snippet from "perldoc Cwd"):

ESC[1mNAMEESC[0m
     Cwd − get pathname of current working directory

ESC[1mSYNOPSISESC[0m
         use Cwd;
         my $dir = getcwd;

         use Cwd 'abs_path';
         my $abs_path = abs_path($file);

ESC[1mDESCRIPTIONESC[0m
     This module provides functions for determining the pathname
     of the current working directory.  It is recommended that
     getcwd (or another *ESC[4mcwd()ESC[24m function) be used in ESC[4mallESC[24m code to
     ensure portability.

     By default, it exports the functions ESC[4mcwd()ESC[24m, ESC[4mgetcwd()ESC[24m,
     ESC[4mfastcwd()ESC[24m, and ESC[4mfastgetcwd()ESC[24m (and, on Win32, ESC[4/tmp/xFkMcR5f3E 





More information about the OpenIndiana-discuss mailing list