delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/12/09:00:16

Date: Wed, 12 Jun 2002 15:54:32 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Manuel Collado <mcollado AT aaron DOT ls DOT fi DOT upm DOT es>
cc: djgpp AT delorie DOT com
Subject: Re: ANNOUNCE: DJGPP port of Less 374 uploaded
In-Reply-To: <3D0735C2.7AF6FD8F@lml.ls.fi.upm.es>
Message-ID: <Pine.SUN.3.91.1020612154409.18772B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019