Return to BSD News archive
Xref: sserve comp.os.386bsd.misc:2583 comp.os.linux.misc:17172 Newsgroups: comp.os.386bsd.misc,comp.os.linux.misc Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!sunic!EU.net!uunet!decwrl!pa.dec.com!decuk.uvo.dec.com!janix.pcs.dec.com!pcsrcu!tartufo!me From: me@tartufo.pcs.com (Michael Elbel) Subject: Re: Linux vs *BSD (new twist) Reply-To: me%dude.pcs.dec.com@inet-gw-2.pa.dec.com Organization: PCS Computer Systeme GmbH Date: Thu, 16 Jun 1994 10:52:20 GMT Message-ID: <me.771763940@tartufo> References: <2sl6o3$pvs@aurora.engr.latech.edu> <WAYNE.94Jun3224657@backbone.uucp> <2spm91$1b2@Starbase.NeoSoft.COM> <me.771084458@tartufo> <2t9jo2$gek@Starbase.NeoSoft.COM> Sender: @pcsrcu.pcs.com Lines: 40 In <2t9jo2$gek@Starbase.NeoSoft.COM> peter@Starbase.NeoSoft.COM (Peter da Silva) writes: >In article <me.771084458@tartufo>, >Michael Elbel <me%dude.pcs.dec.com@inet-gw-2.pa.dec.com> wrote: >>Does it? I'm pretty sure, it doesn't. I distinctively remember that the >>/etc/DIRCOLORS file holds the actual escape sequences to use. >What if you have more than one terminal? Huh? My argument was, that I was bitten by the fact that the actual escape sequences were coded into /etc/DIRCOLORS. You see, we have written this terminal emulator to replace xterm that is freely programmable. I normally don't use its ANSI emulation, since this is more complex than necessary for termcap/terminfo programs and thus eats up more memory than I like. I have written a lean-n-mean parser that mainly consists of "ESC <one character> [<arguments>]" sequences and use according termcap entries. Now, when I first used it with the color ls, i got these unwanted escape sequences on the screen, and upon further investigation found /etc/DIRCOLORS to be the culprit. Since I rather liked the colorized output, and didn't notice any slowdown to not having color (I have aliases ls to ls -F most of the time anyways and this has to stat all the files in the directory anyways, making it way slower than ordinary ls without output), I grudgingly made Emu understand the color escape sequences. I'm still not absolutely sure whether the color ls call termlib or not, but I can't check a up to date version since I'm running FreeBSD nowadays (no arguments please, I just happen to know a couple of FreeBSD developers personally vs. no one in the Linux camp). Michael -- Michael Elbel, Digital-PCS GmbH, Muenchen, Germany - me@dude.pcs.com Fermentation fault (coors dumped)