aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanga_osyo <manga.osyo@gmail.com>2019-11-16 11:13:19 +0900
committeraycabta <aycabta@gmail.com>2019-11-21 00:47:36 +0900
commit81586a4d9fd6afe1c39f737a704c5010faf22192 (patch)
treeae4dcc39756e0b5e041fd6b5648d694625e4fedf
parent777973084e599cf9efa490173709b187fb507f90 (diff)
downloadruby-81586a4d9fd6afe1c39f737a704c5010faf22192.tar.gz
Add <Home> <End> keys.
-rw-r--r--lib/reline/ansi.rb2
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
}