|
From: | Antonio Macchi |
Subject: | Re: Bash with colors? |
Date: | Mon, 16 Feb 2009 07:53:15 +0100 |
User-agent: | Thunderbird 2.0.0.12 (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 do name=$(basename $name) property=$(infocmp $name | grep -o "setaf=[^[:space:],]\+") echo -n ${property:+$property - $name$'\n'} done | \ sort | less a very very long list of terminals uses the same style of capabilities are maybe the others simply "out-of-date"?
[Prev in Thread] | Current Thread | [Next in Thread] |