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 695011 - Set contrasting cursor foreground colour
Set contrasting cursor foreground colour
Status: RESOLVED DUPLICATE of bug 85821
Product: gnome-terminal
Classification: Core
Component: Profiles
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks: 85821
 
 
Reported: 2013-03-02 17:28 UTC by Tony Houghton
Modified: 2016-02-11 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vte 0.36.3 patch that adds cursor foreground color setting (13.98 KB, patch)
2014-07-16 22:59 UTC, James Reed
none Details | Review
cursor foreground patch against master (17.73 KB, patch)
2014-09-06 20:13 UTC, James Reed
committed Details | Review

Description Tony Houghton 2013-03-02 17:28:19 UTC
Any character underneath the cursor should be drawn in a foreground colour that contrasts with the cursor background. With the default colours of black for both you can't see the character under the cursor at all when it isn't blinking.
Comment 1 Tony Houghton 2013-08-11 12:29:57 UTC
I didn't describe that very well. If the cursor colour isn't explicitly set, or is NULL, it's OK: characters under the cursor are drawn in "inverse video". But if you set an actual colour with vte_terminal_set_color_cursor (or the _rgba version) text under the cursor is drawn in its original colour. In most colour schemes there is very little contrast between the default text colour and the cursor.
Comment 2 James Reed 2014-07-16 22:59:35 UTC
Created attachment 280892 [details] [review]
vte 0.36.3 patch that adds cursor foreground color setting

The attached patch against vte 0.36.3 adds vte_terminal_set_color_cursor_foreground{,_rgba} functions.
Comment 3 Christian Persch 2014-08-16 18:01:04 UTC
Comment on attachment 280892 [details] [review]
vte 0.36.3 patch that adds cursor foreground color setting

Doesn't apply to master.
Comment 4 James Reed 2014-09-06 20:13:24 UTC
Created attachment 285589 [details] [review]
cursor foreground patch against master
Comment 5 Christian Persch 2015-04-27 17:19:09 UTC
The '0.36.3' patch doesn't in fact apply to the 0.36.3 git tag, and the 'master' patch doesn't apply to *any* git commit that I could find... Can you please attach a "git format-patch" formatted patch ?
Comment 6 Christian Persch 2015-11-24 22:12:08 UTC
I committed an variant of this patch.

I didn't add the escape sequences to change the cursor foreground colour, since we should NOT just add new escape sequences (here OSC 20) without consulting with xterm upstream to reserve it.

Also leaving open in order to add the corresponding UI to gnome-terminal.
Comment 7 Tony Houghton 2016-01-07 16:41:18 UTC
I think it would also be a good idea to rename vte_terminal_set_color_cursor to "vte_terminal_set_color_cursor_background" and make the former a deprecated alias.
Comment 8 Christian Persch 2016-01-07 19:25:56 UTC
IMHO that's needless API churn, but we can definitely dot his the next time we break API.
Comment 9 Tony Houghton 2016-02-11 16:12:29 UTC
Now that this is dealt with in vte and we're just waiting for gnome-terminal to implement it I think it's appropriate to mark this as a duplicate.

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