ANSI codes for saving/restoring attributes not supported
Submitted by Pedro Villavicencio
Link to original bug (#590367)
Description
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. "
Version: 0.20.x
Resolution: RESOLVED DUPLICATE