diff options
author | Daniel Colascione <dancol@dancol.org> | 2024-10-02 21:33:50 -0700 |
---|---|---|
committer | Daniel Colascione <dancol@dancol.org> | 2024-10-02 21:39:56 -0700 |
commit | 3d609375f99cd0d4b7a441802d4616bad385e31d (patch) | |
tree | f6238525f54c9ce84298f1f143a21641de6d077a /lisp/emacs-lisp/timer-list.el | |
parent | ad529831018555b4c693844bc3b18766eb78465a (diff) | |
download | emacs-3d609375f99cd0d4b7a441802d4616bad385e31d.tar.gz emacs-3d609375f99cd0d4b7a441802d4616bad385e31d.tar.bz2 emacs-3d609375f99cd0d4b7a441802d4616bad385e31d.zip |
Track nil colors in term
Teach term the difference between an unset foreground or
background color and a color that happens to match an existing
color. This way, when we insert text after a color
reset:(e.g. from an SGR0), we insert it without :foreground or
:background (whichever we've reset) face properties, allowing
that inserted text to inherit the colors of the underlying face.
This way, if we change, e.g., the background color of a buffer,
the background color of already-inserted text from the term
child changes along with that of the buffer instead of being
"locked" to whatever the background color of the buffer was at
the time the text was inserted.
This change aligns term.el with other terminal emulators.
* lisp/term.el (term-ansi-current-color):
(term--color-as-hex): track nil fg, bg colors
Diffstat (limited to 'lisp/emacs-lisp/timer-list.el')
0 files changed, 0 insertions, 0 deletions