[Top][All Lists]

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

Re: Bash with colors?

From: Antonio Macchi
Subject: Re: Bash with colors?
Date: Mon, 16 Feb 2009 07:53:15 +0100
User-agent: Thunderbird (X11/20080213)

commands like "ls --color" does not use terminfo capabilities...

...use instead fixed strings (without regards about TERMinal)
is this a good (and safe) choice too?

IMHO not. Too many assumptions. GNU ls seems to always assume an ANSI
terminal, regardless which TERM is set. Or did I miss something?

I have done a little search about how terminals uses "setaf"

$ find /usr/share/terminfo /lib/terminfo -type f | \
while read name
  name=$(basename $name)
  property=$(infocmp $name | grep -o "setaf=[^[:space:],]\+")
  echo -n ${property:+$property - $name$'\n'}
done | \
sort |

a very very long list of terminals uses the same style of capabilities
are maybe the others simply "out-of-date"?

reply via email to

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