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 700775 - gnome-terminal changes cursor color after terminal tab switch
gnome-terminal changes cursor color after terminal tab switch
Status: RESOLVED DUPLICATE of bug 705985
Product: gnome-terminal
Classification: Core
Component: general
3.8.x
Other Linux
: Normal minor
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-21 12:08 UTC by Guillaume Ayoub
Modified: 2013-10-09 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Guillaume Ayoub 2013-05-21 12:08:25 UTC
The bug was originally reported here for gnome-terminal 3.0.0, it's not fixed in 3.8.x (it is not related to Ubuntu, same bug with Gentoo and Arch):
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/842730

When you change the color of the cursor (thanks to 'echo -ne "\033]12;Green\007"' for example), un-focusing the terminal (changing active tab or active window) changes the color of the cursor into black. Coming back to the terminal let the cursor black.

The bug does not appear in vte alone. AFAIK, the "black" color is not related to the color theme of gnome-terminal.
Comment 1 Christian Persch 2013-05-21 12:20:21 UTC
Not reproducible here (using vte + g-t git master).

Can you perform the steps described at https://live.gnome.org/Terminal/ReportingBugs to make sure this is not a downstream bug?
Comment 2 Guillaume Ayoub 2013-05-21 12:48:56 UTC
I've tried the git master version of gnome-terminal, with a brand new user with default gnome-shell, and I have the bug.

As the bug has been originally reported for Ubuntu, and as I can reproduce it on two different computers with Arch and Gentoo, I don't think that it's a downstream bug. I've also tried with bash and zsh, same bug.

Here are the steps to reproduce the bug for me:

- open gnome-terminal
- type ' echo -ne "\033]12;red\007" ': the cursor becomes red
- click on another window: the cursor becomes an unfilled black rectangle
- click on the gnome-terminal window: the cursor becomes an filled black rectangle
- type anyting: the cursor stays black

In the original bug, the same behaviour appears when switching tabs, but I can't reproduce this case myself.
Comment 3 Christian Persch 2013-05-21 13:35:04 UTC
Which vte version is that with? You need >= 0.32.0 .

Using your steps, the cursor becomes a unfilled *red* rect in step 3, and a filled *red* rect in steps 4 and 5. I'm using F17 using metacity, so the missing 'backdrop' support could be a deciding factory. However the original launchpad report is on 3.0 which doesn't do that.
Comment 4 Guillaume Ayoub 2013-05-21 14:15:46 UTC
(In reply to comment #3)
> Which vte version is that with? You need >= 0.32.0 .

I have 0.34.5.

> Using your steps, the cursor becomes a unfilled *red* rect in step 3, and a
> filled *red* rect in steps 4 and 5.

It's *black* for me, no typo.

> I'm using F17 using metacity, so the
> missing 'backdrop' support could be a deciding factory. However the original
> launchpad report is on 3.0 which doesn't do that.

Well… You're right, maybe the bug reported on launchpad is not the same as this one.

I've tested with metacity, and I *can't* reproduce the bug. The problem only happens with gnome-terminal + gnome-shell/mutter.
Comment 5 Christian Persch 2013-10-09 12:07:55 UTC

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