delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/27/20:00:29

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How can I get colors from ls to less
Date: 27 Sep 2000 18:55:37 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 24
Message-ID: <8qtfr9$7vp$1@nets3.rz.RWTH-Aachen.DE>
References: <39D227C4 DOT 17D0A441 AT sensotech DOT at> <8qtbhg$5mt$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <39D23EB2 DOT 5B7C0B57 AT sensotech DOT at>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 970080937 8185 137.226.32.75 (27 Sep 2000 18:55:37 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 27 Sep 2000 18:55:37 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Wolfgang Polzleitner <wp AT sensotech DOT at> wrote:

> However, in DJGPP bash 

'bash' has no influence on this...

> the -r command changes the ESC into a single
> character (little arrow pointing left), i.e. the output looks like
>  <-[00m_bashrc<-[00m
> where the <- is just one character.

Ah, yes. That quite probably means that less comes without (ANSI)
escape sequence interpretation built in. DJGPP will use colors but for
other effects (it simulates underlining and boldface by colors). You
have two options, then

1) Load 'ANSI.SYS' or one of its improved versions (I'd recommend
   the nnansi.exe TSR, available on SimTel.Net).

2) Patch the 'termios' or color support (I don't know all the details
   of it myself, either) into 'less'.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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