diff options
author | manga_osyo <manga.osyo@gmail.com> | 2019-11-16 11:13:19 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-11-21 00:47:36 +0900 |
commit | 81586a4d9fd6afe1c39f737a704c5010faf22192 (patch) | |
tree | ae4dcc39756e0b5e041fd6b5648d694625e4fedf /lib/reline | |
parent | 777973084e599cf9efa490173709b187fb507f90 (diff) | |
download | ruby-81586a4d9fd6afe1c39f737a704c5010faf22192.tar.gz |
Add <Home> <End> keys.
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/ansi.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 9b83a00df4..f69187cc18 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -7,6 +7,8 @@ class Reline::ANSI [27, 91, 51, 126] => :key_delete, # Del [27, 91, 49, 126] => :ed_move_to_beg, # Home [27, 91, 52, 126] => :ed_move_to_end, # End + [27, 91, 72] => :ed_move_to_beg, # Home + [27, 91, 70] => :ed_move_to_end, # End [27, 32] => :em_set_mark, # M-<space> [24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows } |