man page colors messed up just after exiting curses command

Bug #1231787 reported by Edwin Pujols
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vte3 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

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.

Description: Ubuntu Saucy Salamander (development branch)
Release: 13.10

libvte-2.90-9:
  Installed: 1:0.34.6-1ubuntu1
  Candidate: 1:0.34.6-1ubuntu1
  Version table:
 *** 1:0.34.6-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main i386 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: libvte-2.90-9 1:0.34.6-1ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-8.15-generic 3.11.1
Uname: Linux 3.11.0-8-generic i686
ApportVersion: 2.12.4-0ubuntu1
Architecture: i386
Date: Thu Sep 26 23:44:29 2013
InstallationDate: Installed on 2013-08-31 (26 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130830)
MarkForUpload: True
SourcePackage: vte3
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Edwin Pujols (edwinpm5) wrote :
description: updated
description: updated
description: updated
Edwin Pujols (edwinpm5)
description: updated
description: updated
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Confirmed with mainstream vte-0-34 HEAD (pre-0.34.9).
Could you please report the bug upstream at https://bugzilla.gnome.org/enter_bug.cgi?product=vte ?

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

In vteseq.c the case 47/1047/1049 should call _vte_terminal_set_default_attributes (terminal); before clearing the screen. Not sure if it should go inside the "if (set)" branch, or outside.

Revision history for this message
Edwin Pujols (edwinpm5) wrote :

Just now I've reported the bug to upstream.

Revision history for this message
Edwin Pujols (edwinpm5) wrote :

Here is the link to the bug report on bugzilla:

https://bugzilla.gnome.org/show_bug.cgi?id=709930

Revision history for this message
Edwin Pujols (edwinpm5) wrote :

@egmont-gmail

Your patch worked for me ^^

Rolf Leggewie (r0lf)
Changed in vte3 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
katsu (katsukatsu-deactivatedaccount) wrote :

confirm ubuntu 12.04.3

[test case]
- open gnome-terminal.
- set colorscheme option in ~/.vimrc & save. (ex: colorsheme darkblue)
- $ vi ~/.vimrc & quite
- $ man ls

[work around]
ctrl+l or quit & retry man command.

[installed package]
$ dpkg -l | grep libvte-2.90-9
ii libvte-2.90-9 1:0.32.1-0ubuntu1

#5 patche & rebuild libvte-2.90-9 package.
--> worked for me.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

vte 0.36 (gnome 3.12) will fix this.

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.