ANSI codes for saving/restoring attributes not supported

Bug #407153 reported by Tommy Lindgren
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gnome Virtual Terminal Emulator
Invalid
Medium
vte (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

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.

Running Jaunty.

ii gnome-terminal 2.26.0-0ubuntu2
ii libvte9 1:0.20.0-0ubuntu2

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Confirmed it works fine in xterm but it doesnt' on a vte based one.

Changed in vte (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=590367

Changed in vte (Ubuntu):
status: Confirmed → Triaged
Changed in vte:
status: Unknown → New
Revision history for this message
Thomas Dickey (dickey-his) wrote :

For the record, the vtansi.htm page (originally by Robert M. Free - though I don't see his
name on that copy) contains several technical errors - citing it in a bug report
is a nonstarter.

In this instance, it happens to say something which is relevant, but still not
completely true. In particular, CSI s and CSI u are not vt100 sequences,
but xterm happens to recognize them - because it also recognizes several
sequences from ISO 6429 - this one since 1996.

Saving/restoring attributes on the other hand, is a feature described in technical
manuals available at vt100.net - a source with which the vte developers
appear to be unfamiliar.

Changed in vte:
importance: Unknown → Medium
Changed in vte:
status: New → Confirmed
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

This was fixed in vte-0.40 (upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=731205)

Changed in vte:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.