Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor keys don't work in rxvt-terminal with pick.vim #275

Closed
ghost opened this issue Feb 11, 2018 · 1 comment
Closed

Cursor keys don't work in rxvt-terminal with pick.vim #275

ghost opened this issue Feb 11, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 11, 2018

... this is not an issue of pick.vim (or pick) but related to the keypad transmit mode:tmux always sends smkx to the terminal (tmux/tmux@78ca1b0), but this does not help with pick in vim ...

It works with xterm, but not with rxvt-unicode:

% infocmp -1 xterm | grep '[rs]mkx' 
	rmkx=\E[?1l\E>,
	smkx=\E[?1h\E=,
% infocmp -1 rxvt-unicode | grep '[rs]mkx'
	rmkx=\E>,
	smkx=\E=,

... with rxvt-unicode and pressing Left/Right:

% tput smkx; cat
^[[D^[[C

... now using the smkx-sequence from xterm with rxvt-unicode (and pressing Left/Right):

% echo -ne "\033[?1h"; tput smkx; cat
^[OD^[OC

... looks good, but seems that the smkx-sequence in rxvt-unicode is broken (or incomplete) ...

After reading ohmyzsh/ohmyzsh#5113:

Switching to use smkx/rmkx application mode and terminfo for portability was a good idea: you're supposed to use portability libraries for stuff like this. But I think it's time to call it a failed experiment. Not because the implementation in OMZ was bad, but because terminfo and the various terminal programs out there don't have sufficient support for it.

the keypad transmit mode should be removed in pick and the ESC-sequences for the Cursor keys also hardcoded to these from xterm-terminfo: ^[OA, ^[OB, ^[OC, ^O[D ...

@ghost ghost changed the title Cursor keys don't work in rxvt-terminal with pick.vim Cursor keys don't work in rxvt-terminal with pick.vim Feb 11, 2018
@mptre
Copy link
Owner

mptre commented Feb 11, 2018

Closing for now.

@mptre mptre closed this as completed Feb 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant