Bug 860110 - RFE: tty color features
RFE: tty color features
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All All
unspecified Severity unspecified
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 20:53 EDT by Dave Yost
Modified: 2012-09-25 07:57 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-09-25 07:57:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dave Yost 2012-09-24 20:53:26 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
  stty color-fd3=/#222255
  stty color-out=

or

  stty color-type=cmd:#ffdddd/#000000
  stty color-echo=cmd
  echo foo
  stty color-echo=#eeeeee
  echo bar
  stty color-echo=cmd
  echo baz

Names of things that can be colorized might include:
  echo
  out
  err
  fd0
  fd1
  fd2
  ...

I think named colors should be supported, with at least these builtin names:
  echo-default
  in-default
  out-default
This
  stty color-type=echo-default:
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:

  stty color-typeahead=#ff6666/004444

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.
Comment 1 Josh Boyer 2012-09-25 07:57:52 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.