Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] Hide cursor in urxvt - this is possible!

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
razze
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 09, 2005 12:01 pm
Location: Espoo, Finland

[SOLVED] Hide cursor in urxvt - this is possible!

  • Quote

Post by razze » Wed May 27, 2009 7:51 pm

I am using urxvt with borderless and transparency to get certain log files to appear to be directly on the desktop. However I cannot find the correct setting to hide the cursor in these non-input terminals. Can anyone help me with this?
Last edited by razze on Thu May 28, 2009 8:58 am, edited 1 time in total.
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Top
avx
Advocate
Advocate
User avatar
Posts: 2152
Joined: Mon Jun 21, 2004 4:06 am

  • Quote

Post by avx » Wed May 27, 2009 9:44 pm

What about adjusting it's color to be the same as the background? Or do you have some fancy backdrop making that impossible?
Top
livibetter
n00b
n00b
User avatar
Posts: 63
Joined: Sun Apr 19, 2009 7:21 am
Location: Taipei, Taiwan
Contact:
Contact livibetter
Website

  • Quote

Post by livibetter » Thu May 28, 2009 12:51 am

Try to run before tail (I suppose):

Code: Select all

#Hide cursor
echo -ne "\033[?25l"
#Show cursor
#echo -ne "\033[?25h
Reference: http://en.wikipedia.org/wiki/ANSI_escape_code

Or set the following in ~/.Xdefaults

Code: Select all

URxvt.cursorColor:      #rrggbb
Or just run

Code: Select all

urxvt -cr rgb:rr/gg/bb
References: man urxvt, man 7 urxvt
Top
razze
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 09, 2005 12:01 pm
Location: Espoo, Finland

  • Quote

Post by razze » Thu May 28, 2009 5:54 am

Thanks for the tips.

I am using a multi-colored image as background so setting the cursor color to the same as the background does not work for me.

The escape code works if I enter it as a separate command in the terminal window, but I would like to start the log "window" with just one command so I would like to get a way to enter it on the command line. Trying to execute the escape sequence after an -e did not work for me, so is there a way to sent it directly to urxvt.

my current command:

Code: Select all

 /usr/bin/urxvt +bc -fn 6x13 -fg grey -bl +sb -sh 100 -g 160x10+2+860 -e tail -f $1
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Top
livibetter
n00b
n00b
User avatar
Posts: 63
Joined: Sun Apr 19, 2009 7:21 am
Location: Taipei, Taiwan
Contact:
Contact livibetter
Website

  • Quote

Post by livibetter » Thu May 28, 2009 6:17 am

razze wrote:

Code: Select all

 /usr/bin/urxvt +bc -fn 6x13 -fg grey -bl +sb -sh 100 -g 160x10+2+860 -e tail -f $1
If you don't want to create a script, then you can do

Code: Select all

/usr/bin/urxvt +bc -fn 6x13 -fg grey -bl +sb -sh 100 -g 160x10+2+860 -e sh -c 'echo -ne "\033[?25l" ; exec tail -f $1'
Top
razze
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 09, 2005 12:01 pm
Location: Espoo, Finland

  • Quote

Post by razze » Thu May 28, 2009 8:58 am

Hi!

Thanks for the tip!! The $1 does not work if I run this (actually a one-line script file), but if I give the log file directly on the command line then it works as I want to - and thats fine with me.
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Thu May 28, 2009 2:55 pm

razze wrote:Hi!

Thanks for the tip!! The $1 does not work if I run this (actually a one-line script file), but if I give the log file directly on the command line then it works as I want to - and thats fine with me.
The $1 will work if you interchange the order of the quotes:

Code: Select all

"echo -ne '\033[?25l' ; exec tail -f $1"
@livibetter: thanks for the tip :D
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
razze
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 09, 2005 12:01 pm
Location: Espoo, Finland

  • Quote

Post by razze » Thu May 28, 2009 5:34 pm

ppurka: that did the trick, thanks!
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Thu May 28, 2009 6:58 pm

By the way, I almost forgot. You do know about conky, don't you?
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
Post Reply

9 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic