Mail Archives: djgpp/2002/06/12/09:00:16
On Wed, 12 Jun 2002, Manuel Collado wrote:
> Eli Zaretskii wrote:
> > ...
> > The DJGPP version uses colors to designate bold, underlined, and
> > inverse-video text. It also supports display of text with embedded SGR
> > escape sequences by emulating the Posix-standard ANSI terminal driver.
>
> I'm not sure how to interpret this paragraph.
Verbatim... ;-)
> the command
>
> ls -l --color | less -r
>
> which should allow me to view a colorized directory listing one page at
> a time doesn't work
"less -r" isn't supposed to do that; "less -R" is. This is documented
in the Less man page.
> This command works OK in a Cygwin environment, but not in the DJGPP
> environment.
That's because (AFAIK) Cygwin has a built-in emulator of a Unix terminal
driver that supports ANSI escapes. In other words, what you see in the
Cygwin port is not what Less does, but what the terminal driver does.
> In fact, I've never been able to page a file with ANSI
> escape sequences throught any the DJGPP version of less.
Well, "less -R" works for me.
- Raw text -