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 69776 - Be Able to Assign a Color to the Cursor
Be Able to Assign a Color to the Cursor
Status: RESOLVED DUPLICATE of bug 85821
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Low enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 109632 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-01-27 00:01 UTC by Jeff Bisbee
Modified: 2007-01-26 06:13 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
hardcode cursor to red (843 bytes, patch)
2004-07-02 05:33 UTC, Martin Pool
none Details | Review
proposed UI (27.38 KB, image/png)
2004-07-02 05:38 UTC, Martin Pool
  Details
patch to allow changing cursor color (33.73 KB, patch)
2004-10-07 05:54 UTC, Martin Pool
none Details | Review

Description Jeff Bisbee 2002-01-27 00:01:12 UTC
Like the other terminals, I would like to assign a color to my cursor.
Comment 1 Mark McLoughlin 2002-02-06 10:11:23 UTC
Re-classifying this as an enhacement reqeust.
Comment 2 Mark McLoughlin 2002-02-13 19:04:10 UTC
Moving to gnome-terminal ...
Comment 3 Havoc Pennington 2002-02-14 03:42:16 UTC
What is the purpose of this feature? I don't understand why it's
useful, and the prefs dialog is already insanely full, with a number
of genuinely useful options not included.
Comment 4 Jeff Bisbee 2002-02-14 12:24:13 UTC
Xterm, RXVT, and Eterm have ways to change the color of the text
cursor.  With gnome terminal, it takes on the color of the last ANSI
color that was assigned.  It's a feature I've found in other terminals
and something I would like to see in gnome-terminal.  

Xterm: ~/.Xdefaults

    XTerm*cursorColor: yellow

Eterm: ~/.Eterm/themes/Eterm/theme.cfg

    foreground #aaaaaa
    background black
    cursor #ffff00
    cursor_text #880000

Comment 5 Havoc Pennington 2002-02-14 15:13:20 UTC
What I'm asking is why it's useful. The reason I'm asking is that I
need to weigh its importance relative to other things that could be
placed in the finite space of the configuration dialog. Right now I
don't understand why I would ever use this option or why the other
terminals have it.

I'm not saying it's not useful, I'm saying I personally don't know
what people use it for.
Comment 6 Jeff Bisbee 2002-02-14 15:45:38 UTC
To have the cursor standout from the surrounding text.  This is
helpful when you're coding and have many termnials open so you can
quickly eyeball your term see where your cursor is because it stands
out.  This is especially helpful when you use smaller fonts.

If you go to the colors tab within gnome terminal preferences, Cursor
color would go:

  Color Scheme:           
  Fore/Background Color:  
  Foreground color:
  Background color:
  Cursor Color:           <--
  Color palette:

Just another dropdown... :)
Comment 7 Havoc Pennington 2002-02-16 00:01:52 UTC
I guess I'd really prefer to see a global desktop setting for the
cursor color. CC'ing jrb, he was working on that. TBD.
Comment 8 Stephane Chauveau 2002-09-20 16:13:47 UTC
A global desktop setting for the cursor?  
Are you talking about the TEXT cursor or the MOUSE cursor?
Comment 9 Jeff Bisbee 2002-09-20 16:15:44 UTC
The text cursor
Comment 10 Stephane Chauveau 2002-09-28 16:44:11 UTC
Yep! but the last comment of Havoc make me think that he
was talking about the mouse cursor.

Comment 11 Yanko Kaneti 2003-04-18 01:03:13 UTC
*** Bug 109632 has been marked as a duplicate of this bug. ***
Comment 12 Martin Pool 2003-12-01 06:46:47 UTC
I'd like to have this too.  On a busy screen it can be hard to
immediately see where the cursor is, at least for "fullscreen" kind of
programs like text editors where the cursor can be anywhere on the
screen.  If you lose track of where the cursor is, it can take a few
seconds of visual searching to find the particular inverted block,
especially if there are reverse-video lines on the screen.  It was
particularly annoying me right now because my terminal was showing a
laggy SSH session where just moving the cursor to make it show up
would take a couple of seconds.

For this reason, other programs have colored or blinking cursors. 
It's not just candy.  There is a usability aspect.  (Dumbterms have
had it for 20 years now...)

I agree that it should probably be a desktop-wide setting.  Indeed
this bug could be half-fixed without adding any additional
configuration by just making it obey the "Cursor blinks in text boxes
and fields" setting in the Keyboard Preferences config applet.  Making
the cursor blink would make it easy to find, but some people
understandably find blinking objects annoying.

Setting color is a bit more problematic.  It probably ought to use
some kind of standard highlight color from the current theme. 
However, many people use different colors for their terminals than for
the rest of the desktop: I have a light GTK theme, but grey-on-black
terminals.  A color that looks good in GTK widgets might be no good in
the terminal.  Therefore I think it needs to be configurable as well.
 I'd suggest on the Colors page, an additional "Cursor color" inkwell,
which is conditioned on the "use colors from system theme" checkbox.

The cursor ought to stop blinking when the window loses focus, just as
it currently turns into an outline.

I may eventually write a patch for at least the blinking part, so I
would appreciate any comments.
Comment 13 Martin Pool 2003-12-06 14:17:58 UTC
Blink is already in of course.  Never mind me.
Comment 14 Martin Pool 2004-07-02 05:32:52 UTC
This trivial patch against 2.7.3 shows that support for colored cursors seems to
be working OK in libvte 0.11.11.  We just need to add a gnome-terminal interface
to turn it on.

(I don't propose this patch for inclusion.)

Comment 15 Martin Pool 2004-07-02 05:33:30 UTC
Created attachment 29153 [details] [review]
hardcode cursor to red
Comment 16 Martin Pool 2004-07-02 05:38:27 UTC
Created attachment 29154 [details]
proposed UI

Would it be OK to add an additional inkwell control to set the cursor color,
like this?

This would allow what's now possible with rxvt, xterm, etc.

A drawback is that people who want the cursor the same color as the text, and
don't want a standard theme would need to set both.
Comment 17 Mariano Suárez-Alvarez 2004-07-02 05:45:35 UTC
Note that one can drag the color from one color button to another.



Comment 18 Martin Pool 2004-07-02 05:59:24 UTC
I didn't know that.

In that case I think the UI burden on people who don't care about this is pretty
low, and it will make people who do want a colored cursor happy.  

If the interface is OK I'll finish off the patch.
Comment 19 Martin Pool 2004-10-07 05:54:48 UTC
Created attachment 32316 [details] [review]
patch to allow changing cursor color

Proposed patch to add this feature:

This adds a color well for the cursor in the preferences dialog.  It works for
me.
Comment 20 Martin Pool 2004-10-11 05:00:34 UTC
The patch attached adds a selector to the preferences page, as shown in the
dialog screenshot. 

Any chance of getting it merged?
Comment 21 Mariano Suárez-Alvarez 2007-01-26 06:13:18 UTC
Unhistorically marking this as a dup of 85821.

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