bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ls --color=auto uses colors also in non color terminals


From: Guenter Milde
Subject: ls --color=auto uses colors also in non color terminals
Date: Thu, 11 Jan 2001 09:27:14 +0100 (CET)

Dear Gnu,

I am a (mostly) happy user of a Gnu/Linux System (SuSe) still I got the
abovementioned problem. When ls {(GNU fileutils) 4.0} is used from a
terminal that cannot tell the colorization escape codes, the ls output is
padded with disturbing caracters: like Bibliografie for a
directory.

The --help tells, that --color=auto sends color codes if stdout is linked to
a terminal. In my opinion it should be checked (via the $TERM variable and
termcap) whether the terminal has color capacities.  (Especially if
TERM=unknown no color codes should be sent.)

Of course I can use --color=none, yet I'd prefer one general setting for
both color and non-color terminals. I wonder whether a colorc capable check
could be implemented in the next version of ls.


Sincerely

Guenter

--
address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]