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 744929 - Ignore unrecognized OSC sequences
Ignore unrecognized OSC sequences
Status: RESOLVED DUPLICATE of bug 403130
Product: vte
Classification: Core
Component: general
unspecified
Other Mac OS
: Normal enhancement
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-22 04:57 UTC by George Nachman
Modified: 2015-02-22 11:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description George Nachman 2015-02-22 04:57:20 UTC
Summary
-------
OSC sequences that you don't handle should be swallowed up silently (everything between OSC and ST should be eaten up). Currently, Gnome terminal/VTE prints everything from the opening escape to the terminator to the display.

Why this is a problem
---------------------
Some terminals support OSC sequences that VTE does not. For example, FinalTerm and iTerm2 have added support for OSC sequences of their own (e.g., OSC 133 and OSC 1337). xterm supports various OSC sequences that vte does not (e.g., OSC 5, OSC 51, OSC 52, OSC 105). In the future, VTE may add support for additional OSC sequences. This is a chance for improved forward compatibility for users who use more than one version.

I've received complaints from users who use iTerm2 at home and Gnome terminal at work because they need to customize their rc scripts so Gnome terminal won't output garbage at their prompt (the forthcoming beta version of iTerm2 relies heavily on these codes).

Example user issue: https://code.google.com/p/iterm2/issues/detail?id=3414


Example
-------
As it stands, a sequence like

OSC 1337;foo ST

will print the sequence, including an ugly glyph for u001b.


What do other terminals do?
---------------------------
Other terminals, such as xterm and Terminal.app on OS X, ignore unrecognized OSC sequences. This allows such unsupported codes to be silently ignored on terminals that do not support them.
Comment 1 Egmont Koblinger 2015-02-22 11:27:00 UTC
Yeah we know we should do it :)

*** This bug has been marked as a duplicate of bug 403130 ***