How does non-color terminals deal with color prompts? If you `echo -e
'\e[1;34mtest\e[0m'` on a terminal without support, does it come out
garbled? If so, couldn't that be a test of color support? echo something
with formatting, then check that the string output to stdout is only
that between the formatting expressions. Or is it possible to use one of
the solutions mentioned in http://stackoverflow.com/questions/2465425
/how-do-i-determine-if-a-terminal-is-color-capable: `tput colors 2` or
`man terminfo`?

-- 
Bash prompt string looks for xterm-color, gnome terminal identifies as xterm
https://bugs.launchpad.net/bugs/103929
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to