xyb3rt / urxvt-perls

Perl extensions for the rxvt-unicode terminal emulator
GNU General Public License v2.0
753 stars 110 forks source link

Keyboard Selection: The Cursor is not Always Visible #10

Closed baskerville closed 13 years ago

baskerville commented 13 years ago

I don't know if it is possible but it would be nice to be able to see the cursor in applications where it is disabled (for example mocp).

xyb3rt commented 13 years ago

There is no way to get/set the cursor visibility from a perl extension in rxvt-unicode (term->hidden_cursor does not work). But you can patch rxvt-unicode to disable the cursor hiding (http://pastebin.com/er6V1zx6).

baskerville commented 12 years ago

I can hide / show the cursor with the following commands:

URxvt.keysym.C-0:           command:\033[?25l
URxvt.keysym.M-C-0:         command:\033[?25h
AguirreIF commented 11 years ago

I finally figured it out, adding $self->cmd_parse($self->locale_encode("\e[?25h")); in the activate sub makes the cursor visible.