You are not logged in.
Is there a way to emulate the exact same cursor behavior in urxvt as one would find on the Linux console (i.e. not under X11).
I am used to working at the console and in this environment, the cursor is a blinking underscore by default. However, it's color, shape, and blinking behavior can be controlled via character escape sequences. Some applications take advantage of these facilities.
I can configure urxvt to show the cursor as either a block or underscore, and also enable or disable blinking, but these options are either set in a configuration file or at the command line. I cannot figure out how to enable them at run time. The usual to set the cursor escape sequences seem to be ignored.
Has anyone successfully managed this?
Offline
If you mean blinking underscore, put the following to your .Xresources:
URxvt.cursorBlink: 1
URxvt.cursorUnderline: 1-- or launch urxvt with -bc -uc parameters.
Edit: you should put somewhere to your X init file
xrdb -merge ~/.Xresourcesso that the settings are always loaded when you enter the X environment.
Last edited by bohoomil (2012-08-03 17:17:10)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
If you mean blinking underscore, put the following to your .Xresources:
URxvt.cursorBlink: 1 URxvt.cursorUnderline: 1-- or launch urxvt with -bc -uc parameters.
Thanks, though unfortunately these are the configuration options and command line switches that I was referring to. Do you know if there is a way to change the appearance of the cursor at run time? In other words, when the program is running?
Ideally, I'd like urxvt to respond to the ANSI cursor codes which affect the cursor appearance. I've been hunting around trying to determine if this is implemented in urxvt but I haven't found much on the subject in the urxvt man pages.
Offline
I must have missed your point -- sorry for that. I haven't seen any extension of the sort, but there does exist one for changing font size on-the-fly (see here), which seems a bit like a similar task. Bearing in mind extensive scripting capabilities of urxvt, maybe it is possible for a Perl-literate person to write an extension doing what you are asking for. muennich has devised several commonly used valuable extensions, so you may want to try and contact him just in case he knows how (and is willing) to help.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I must have missed your point -- sorry for that. I haven't seen any extension of the sort, but there does exist one for changing font size on-the-fly (see here), which seems a bit like a similar task.
No worries, and thanks a bunch for a the link to the font size extension. I usually use a simple bash alias to output the proper escape sequences in order to change the urxvt font. I have a few of my favorite fonts mapped to function keys. I never knew about this AUR package, however. It looks like just the thing.
As for the cursor, still no luck so far in getting to behave just as it would on the console.
Offline