Red Hat Bugzilla – Bug 860110
RFE: tty color features
Last modified: 2012-09-25 07:57:52 EDT
Description of problem:
This is not a complete spec, only a sketch.
It would be nice to be able to specify fg/bg colors at the tty level, so that echoed characters can be colorized. Then your shell can arrange that shell command input is one fg/bg color, and other input taken by commands run from the shell is another color.
For example, like this:
stty color-echo=#ffdddd/#000022 color-out=#ddffdd color-err=/#220000
Names of things that can be colorized might include:
I think named colors should be supported, with at least these builtin names:
tells the tty driver that echo-default does no colorizing.
I used #xxxxxx notation as a placeholder. Probably in actual use, the user would supply a terminal escape sequence.
Typeahead is tricky:
This would cause typeahead to be echoed in the desired color, and then when appropriate, typeahead characters could change color, such as when they are consumed or when they are hanging there with a pending cooked read.
Please work with the upstream community on this. The Fedora kernel team does not have time to implement this RFE at the moment, nor in the foreseeable future.
If this is implemented upstream, Fedora will automatically pick it up.