ruby-changes:58862
From: manga_osyo <ko1@a...>
Date: Thu, 21 Nov 2019 00:48:59 +0900 (JST)
Subject: [ruby-changes:58862] 81586a4d9f (master): Add <Home> <End> keys.
https://git.ruby-lang.org/ruby.git/commit/?id=81586a4d9f From 81586a4d9fd6afe1c39f737a704c5010faf22192 Mon Sep 17 00:00:00 2001 From: manga_osyo <manga.osyo@g...> Date: Sat, 16 Nov 2019 11:13:19 +0900 Subject: Add <Home> <End> keys. diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 9b83a00..f69187c 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -7,6 +7,8 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L7 [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 } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/