GNOME Bugzilla – Bug 590367
ANSI codes for saving/restoring attributes not supported
Last modified: 2018-02-28 13:24:58 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/vte/+bug/407153 "According to http://www.termsys.demon.co.uk/vtansi.htm, VT100 terminals should support these two escape sequences: Save Cursor & Attrs <ESC>7 * Save current cursor position. Restore Cursor & Attrs <ESC>8 * Restores cursor position after a Save Cursor. VTE-based terminals (gnome-terminal, terminator etc) treat them as Save Cursor <ESC>[s * Save current cursor position. Unsave Cursor <ESC>[u * Restores cursor position after a Save Cursor. i.e. attributes are actually never restored. How to reproduce: echo -ne "\00337" # save attributes echo -ne "\0033[7m" # reverse video echo -ne "\00338" # restore attributes (i.e no reverse video anymore) echo this text should not be in inversed colors In gnome-terminal the message is displayed in reverse video. In xterm it is displayed correctly. "
For the record: DEC private modes should also have save/restore counterparts: CSI ? blah h = enable (implemented) CSI ? blah l = disable (implemented) CSI ? blah s = save (not implemented) CSI ? blah r = restore (not implemented) Are these important? Do we know any application that breaks because we don't support these (or the ones in the initial report)?
The originally reported issue was fixed in bug 731205. Comment 1's save/restore feature is still missing.
I think comment 1 is in error; save and restore are already implemented, too (seq_{save,restore}_mode).
(In reply to Christian Persch from comment #3) > I think comment 1 is in error; save and restore are already implemented, too > (seq_{save,restore}_mode). Indeed, my bad. *** This bug has been marked as a duplicate of bug 731205 ***