Skip to content

Commit 0f80b8e

Browse files
committed
GH-92: also try bindkey with $terminfo for arrows
1 parent 2c36e4d commit 0f80b8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ Usage
6868
bindkey '^[[A' history-substring-search-up
6969
bindkey '^[[B' history-substring-search-down
7070

71+
However, if the observed values don't work, you can try using terminfo:
72+
73+
bindkey "$terminfo[kcuu1]" history-substring-search-up
74+
bindkey "$terminfo[kcud1]" history-substring-search-down
75+
7176
You might also want to bind the Control-P/N keys for use in EMACS mode:
7277

7378
bindkey -M emacs '^P' history-substring-search-up

0 commit comments

Comments
 (0)