From fa1bf8ab37caad5fa0679adc0ecb8f6f5cec2eea Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 19 Dec 2019 23:13:21 +0900 Subject: [PATCH] [ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_word https://github.com/ruby/reline/commit/e98ad3b486 --- lib/reline/ansi.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 376439dc74..4862cfb13f 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -11,6 +11,8 @@ class Reline::ANSI [27, 91, 70] => :ed_move_to_end, # End [27, 32] => :em_set_mark, # M- [24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows + [27, 91, 49, 59, 53, 67] => :em_next_word, # Ctrl+→ + [27, 91, 49, 59, 53, 68] => :ed_prev_word, # Ctrl+← } @@input = STDIN