diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-01 11:46:54 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-01 11:46:54 +0200 |
commit | a21e44c15566be51dc76085d473259ada1ba4a1c (patch) | |
tree | 587619b7dc5023d28669593077e18dc588be1687 /share/functions/fish_default_key_bindings.fish | |
parent | 60089f9750f400b1aa92be2fb7699b8760bbd8ca (diff) |
Add escape sequences for arrows in some linux VTs
Why this is only in some, I don't know, but these don't seem to
interfere with anything.
Fixes #2309
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r-- | share/functions/fish_default_key_bindings.fish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index c1e5719b..daaea646 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -21,6 +21,12 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind $argv -k down down-or-search bind $argv -k up up-or-search + # Some linux VTs output these (why?) + bind $argv \eOA up-or-search + bind $argv \eOB down-or-search + bind $argv \eOC forward-char + bind $argv \eOD backward-char + bind $argv \e\[C forward-char bind $argv \e\[D backward-char bind $argv -k right forward-char |