GNOME Bugzilla – Bug 672210
Bad handling of initc (initialize_color)
Last modified: 2014-04-06 18:19:29 UTC
Created attachment 209903 [details] Demonstrates two initc bugs VTE seems to have two bugs regarding the initc escape sequence. (1) Changes to the system colors (<16) can never be reset, even by an RIS (ESC c), or by the user choosing "Reset and Clear" in e.g. gnome-terminal. (Changes to colors >= 16 work properly.) (2) initc is supposed to change the appearance of all colors on the screen. But VTE does not alter the display of the terminal when receiving an initc -- it only affects new output after the initc. The attached Perl script demonstrates both bugs when run under gnome-terminal vs. under xterm.
(2) should be fixed already (bug 702415).
Created attachment 265793 [details] [review] Fix for (1)
The patch is ugly, but I'm too lazy to clean up the initialization in spirit of bug 705985.
I figured out memcpy is not that ugly after all :) Fixed in vte-0-36, keeping the bug open for vte-next.