You are not logged in.

#1 2013-01-25 12:19:13

daGrevis
Member
From: Riga, Latvia
Registered: 2011-10-16
Posts: 81
Website

[SOLVED] Change the cursor color for URxvt terminal

Can I somehow change the color of cursor in terminal?

Link to the screen — http://i.imgur.com/QhSCCpv.jpg — so you can understand what "cursor“.

I tried to add `URxvt*cursorColor: #FF0000` in `.Xresources` and run `xrdb`, but it doesn't change it.

Last edited by daGrevis (2013-01-25 13:25:35)

Offline

#2 2013-01-25 12:24:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

Did you actually just run xrdb, or did you run `xrdb -merge ~/.Xresources`?

Also, please remove that picture - it is much larger than forum guidelines and does not serve any purpose.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2013-01-25 12:28:07

daGrevis
Member
From: Riga, Latvia
Registered: 2011-10-16
Posts: 81
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

Updated post.

I ran `xrdb .Xresources` and restarted terminal. Other changes in `.Xresources` apply in that way so that shouldn't be the problem.

Offline

#4 2013-01-25 12:59:07

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

Re: [SOLVED] Change the cursor color for URxvt terminal

daGrevis: It should work as you do it, I've just tested it here and it works fine. Now I know about that configuration as well, cool smile

Offline

#5 2013-01-25 13:02:37

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Change the cursor color for URxvt terminal

daGrevis wrote:

Updated post.

I ran `xrdb .Xresources` and restarted terminal. Other changes in `.Xresources` apply in that way so that shouldn't be the problem.

Can you post your .Xresources file?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#6 2013-01-25 13:11:58

daGrevis
Member
From: Riga, Latvia
Registered: 2011-10-16
Posts: 81
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

Offline

#7 2013-01-25 13:13:36

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

daGrevis wrote:

`xrdb .Xresources`

Run

xrdb -load ~/.Xresources

instead.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#8 2013-01-25 13:23:38

daGrevis
Member
From: Riga, Latvia
Registered: 2011-10-16
Posts: 81
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

It does not help. File is loaded because other things get changed.

Tested it w/ urxvt, xterm; bash, zsh — cursor doesn't get changed. sad

Offline

#9 2013-01-25 13:25:19

daGrevis
Member
From: Riga, Latvia
Registered: 2011-10-16
Posts: 81
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

Gotcha! Color schema overwritten setting and didn't warn me about it.

Offline

#10 2013-01-25 13:27:04

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] Change the cursor color for URxvt terminal

You have cursorColor defined twice:

URxvt*cursorColor:    #FF0000

...

URxvt.cursorColor:            S_base1

Edit: obviously a bit too late, but we both did the same reading again... wink

Last edited by bohoomil (2013-01-25 13:32:19)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#11 2013-01-25 13:34:06

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Change the cursor color for URxvt terminal

daGrevis wrote:

Sorry, I asked for that but then got a phonecall that dragged me away from my desk for a while.
Glad you sorted though. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#12 2017-06-04 14:47:36

Chinggis6
Member
Registered: 2017-03-01
Posts: 6

Re: [SOLVED] Change the cursor color for URxvt terminal

If you happen to use dynamic-colors to set a colorscheme for your terminal, your cursor's color is already being defined in:

/usr/share/dynamic-colors/colorschemes/solarized-dark.sh

file (assuming you use the solarized-dark theme).


What you can do is to comment the cursor variable definition on line 27 to let .Xresources' urxvt*cursorColor "prevail"; or you can set the color code directly in there.

To do that easily, you may issue:

dynamic-colors edit solarized-dark

which will bring up the theme file opened in your editor.


I had that problem coming here and could solve it myself when I figured out that it is being overwriten and decided to share my discovery for ones who could have similar situation.

wink

Offline

#13 2017-06-05 01:53:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,728

Re: [SOLVED] Change the cursor color for URxvt terminal

Chinggis6, Welcome to the Arch Linux Forums, and thank you for a relevant post.

Watch the age of threads.  This one has been marked solved and is four years old
https://wiki.archlinux.org/index.php/Co … bumping.22

Using this opportunity to close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB