I can't bind keys in ZSH / Where can I get escape sequence for the key in SHELL?
1
vote
0
answers
248
views
I try to bind Left / Right keys in ZSH, but it seems
1. the escape sequences are wrong or
2. terminal (but all of them? mate xterm, st) is blocking these
\E
sequences.
I can bind for example Ctrl+Left, Shift+Left, Home, End, but I don't know how to bind Shift+Home / End and Left / Right.
I've tested following escape sequences:
"left" "\eOD"
"right" "\eOC"
"shome" "\E[1;2~"
"send" "\E[4;2~"
Is there any command "write \e
sequence for the key $key
"? Thanks.
Asked by Fantastic Mr. Fox
(51 rep)
Sep 5, 2021, 03:21 PM
Last activity: Sep 6, 2021, 01:35 PM
Last activity: Sep 6, 2021, 01:35 PM