After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590367 - ANSI codes for saving/restoring attributes not supported
ANSI codes for saving/restoring attributes not supported
Status: RESOLVED DUPLICATE of bug 731205
Product: vte
Classification: Core
Component: general
0.20.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on: vteparser
Blocks:
 
 
Reported: 2009-07-31 12:46 UTC by Pedro Villavicencio
Modified: 2018-02-28 13:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description Pedro Villavicencio 2009-07-31 12:46:34 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.
"
Comment 1 Egmont Koblinger 2014-01-17 23:43:24 UTC
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)?
Comment 2 Egmont Koblinger 2015-05-09 20:18:01 UTC
The originally reported issue was fixed in bug 731205.

Comment 1's save/restore feature is still missing.
Comment 3 Christian Persch 2018-02-28 11:00:04 UTC
I think comment 1 is in error; save and restore are already implemented, too (seq_{save,restore}_mode).
Comment 4 Egmont Koblinger 2018-02-28 13:24:58 UTC
(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 ***