Add support for the color settings stack that XTerm copied from us without acknowledgement and decided to use incompatible escape codes for.

Completely in keeping with that project's past behavior.
See https://github.com/kovidgoyal/kitty/issues/879

XTerm announcement:
https://www.mail-archive.com/xorg@lists.x.org/msg06419.html
This commit is contained in:
Kovid Goyal
2020-12-21 21:39:05 +05:30
parent e97f1a4310
commit 5f8dee8384
10 changed files with 120 additions and 29 deletions

View File

@@ -199,6 +199,14 @@ These escape codes save/restore the colors, default
background, default foreground, selection background, selection foreground and
cursor color and the 256 colors of the ANSI color table.
.. note:: In July 2020, after several years, XTerm copied this protocol
extension, without acknowledgement, and using incompatible escape codes
(XTPUSHCOLORS, XTPOPCOLORS, XTREPORTCOLORS). And they decided to save not
just the dynamic colors but the entire ANSI color table. In the interests of
promoting interoperability, kitty added support for XTerm's escape codes as
well, and changed this extension to also save/restore the entire ANSI color
table.
Pasting to clipboard
----------------------