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 709930 - man page bg color messed up just after exiting vim
man page bg color messed up just after exiting vim
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.31.x
Other Linux
: Normal normal
: vte-0-36
Assigned To: VTE Maintainers
VTE Maintainers
[fixed-0-36][needed-next][commit:a2a8...
Depends on:
Blocks:
 
 
Reported: 2013-10-11 17:51 UTC by Edwin Pujols
Modified: 2014-07-26 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (690 bytes, patch)
2013-10-15 19:32 UTC, Egmont Koblinger
committed Details | Review

Description Edwin Pujols 2013-10-11 17:51:33 UTC
This happens after exiting Vim when it uses some colors with index greater than 15. For example, run Vim (making sure it recognizes the 256-color capabilities), set a non-default colorscheme (solarized, maybe). Now, exit Vim and run `man ls`. You will notice that some text still has the background from Vim's colorscheme. If you rerun `man ls` the problem disappears.

Looks like the bug is related to ncurses commands: Vim followed by man's pager (less?). But not sure if the bug is strictly within ncurses or within libvte.
Comment 1 Egmont Koblinger 2013-10-15 19:32:33 UTC
Created attachment 257383 [details] [review]
Fix

This fixes it. Not sure whether the default attributes should only be restored when enterig the alternate screen, or also when leaving it (should check xterm).
Comment 2 Christian Persch 2013-11-18 19:44:51 UTC
Did you find out what xterm does?

Pushed to patch to vte-0-36.
Comment 3 Edwin Pujols 2014-03-06 03:33:42 UTC
Christian, I can confirm that on xterm (297) there's no problem. Also, I should point out that this affects vte-2.90... Thanks for your time.
Comment 4 Christian Persch 2014-04-06 18:23:48 UTC
Comment 3 asked about the answer to the question in comment 2, not for confirmation of the original issue in comment 0.
Comment 5 Egmont Koblinger 2014-07-26 13:37:33 UTC
Entering/leaving alt screen shouldn't change the colors.  It's the cursor save/restore (also included in OSC 1049) that restores the color.  Continuing the work in bug 731205, closing this one.