diff options
author | Tomás Pollak <tomaspollak@gmail.com> | 2020-05-18 21:13:49 -0400 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-08-18 19:03:27 +0900 |
commit | f0d3d4fedbfe64c704f8f1e42b1301384b7f52aa (patch) | |
tree | b2b28df196b04f90e0cb9afaa96a4d450146cb42 | |
parent | a30dea5852b5ece74e435d912596983d2654580a (diff) |
[ruby/reline] Add home/end mapping for urxvt and relatives
https://github.com/ruby/reline/commit/c30b293f1c
-rw-r--r-- | lib/reline/ansi.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 91f4cee3c7..c2082c1819 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -28,6 +28,10 @@ class Reline::ANSI [27, 71, 67] => :ed_next_char, # → [27, 71, 68] => :ed_prev_char, # ← + # urxvt / exoterm + [27, 91, 55, 126] => :ed_move_to_beg, # Home + [27, 91, 56, 126] => :ed_move_to_end, # End + # GNOME [27, 79, 72] => :ed_move_to_beg, # Home [27, 79, 70] => :ed_move_to_end, # End |