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 641974 - Escape sequences are not being handled correctly
Escape sequences are not being handled correctly
Status: RESOLVED OBSOLETE
Product: vte
Classification: Core
Component: general
0.26.x
Other Linux
: Normal minor
: ---
Assigned To: VTE Maintainers
VTE Maintainers
[fixed:vteparser]
Depends on: vteparser
Blocks:
 
 
Reported: 2011-02-09 22:51 UTC by Mark Locascio
Modified: 2018-03-27 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshots of printed escape characters (10.95 KB, image/png)
2011-02-09 22:51 UTC, Mark Locascio
Details
A partial typescript of the program running in an xterm (761.28 KB, text/plain)
2011-02-22 18:04 UTC, Mark Locascio
Details
A partial typescript of the program running in a gnome-terminal (761.28 KB, text/plain)
2011-02-22 18:04 UTC, Mark Locascio
Details

Description Mark Locascio 2011-02-09 22:51:45 UTC
Created attachment 180528 [details]
Screenshots of printed escape characters

It appears that gnome-terminal is not correctly emulating how an xterm handles escape sequences. My program uses ncurses to write a table of floating-point values to a console as it runs. If I run this program in an xterm, everything is fine. If I run it in gnome-terminal, escape characters and things like "[31;]" end up getting printed to the screen, overwriting the values (for an example, see the attached image).

I'm sorry I can't provide more information, but I can't post our code.

In gnome-terminal-2.32.0,

$ echo $TERM
xterm
$ env|grep -i utf
LANG=en_US.utf8
GDM_LANG=en_US.utf8
Comment 1 Christian Persch 2011-02-09 23:42:20 UTC
Please attach a script(1) log of the relevant part of the programme's output.
Comment 2 Mark Locascio 2011-02-10 16:18:26 UTC
Two problems:

1. Can I edit a script log without making it useless? There are some parts I can't post publicly, so I'd need to remove some chunks.

2. When I run the program inside script, it behaves normally. The characters you see in the screenshot don't appear.

Sorry. Let me know if there's anything else I can do to help.
Comment 3 Mark Locascio 2011-02-22 18:03:53 UTC
I recorded a script log running in both xterm and gnome-terminal. I edited out several things, and as I mentioned above, the problem does not occur when script is recording the session, but at least you can look at it and see what it's writing.

As the program runs, an ncurses display updates several floating-point values to a table on the screen. The script apparently shows the values being written, along with various other characters that seem to have something to do with where ncurses jumps to write new info.

I hope this is helpful.
Comment 4 Mark Locascio 2011-02-22 18:04:36 UTC
Created attachment 181609 [details]
A partial typescript of the program running in an xterm
Comment 5 Mark Locascio 2011-02-22 18:04:55 UTC
Created attachment 181610 [details]
A partial typescript of the program running in a gnome-terminal
Comment 6 Egmont Koblinger 2014-06-16 12:30:11 UTC
Mark, do you still experience this problem with newest vte?
Comment 7 Christian Persch 2018-03-27 17:47:31 UTC
Closing this bug now; there've been many many changes since this was opened and it's unclear if any issues still apply.

If you find a similar problem on vte git master please report new bug(s, one per issue).