Keep cursor blinking even when window is not active
Zsbán Ambrus
ambrus at math.bme.hu
Thu Jun 30 09:44:30 CEST 2011
On Thu, Jun 30, 2011 at 1:57 AM, Prince Thrash <princethrash at hotmail.com> wrote:
> I would
> like the cursor to stay solid (if possible) and stay blinking, no matter
> what window has focus/is active.
>
> This is part of a little present for a friend, and this is my last hurdle
> before completion, so thanks for any clues.
If it's a present from you, maybe you should do something about it.
Can you compile rxvt-unicode from source? If so, try to edit the
source code to make it behave like this.
The hollow cursor is clearly a feature, so it should be easy to remove
from the source code. Try looking at the rxvt_term::scr_refresh
function in the src/screen.C file, especially where it checks the
focus variable to decide what cursor to draw.
The non-blinking cursor is trickier, because it doubles as an
optimization to stop all the dozen of rxvt I have running from waking
up twice per second to try to blink the cursor. If you don't care
about that performance penalty, you can try to just change the
function rxvt_term::focus_out in the file src/command.C not to stop
the timer event that keeps the cursor blinking. (That may or may not
be enough, I haven't tried.)
Ambrus
More information about the rxvt-unicode
mailing list