From 18b79b4c49767e647564f59e130fd20b1bd014fe Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 19 May 2021 17:58:25 +0900 Subject: [PATCH] [ruby/reline] Add Meta+arrow-keys in extended entries of terminfo https://github.com/ruby/reline/commit/af6f6ed088 --- lib/reline/ansi.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index e37d617247..bdce436969 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -25,6 +25,8 @@ class Reline::ANSI # extended entries of terminfo [27, 91, 49, 59, 53, 67] => :em_next_word, # Ctrl+→, extended entry [27, 91, 49, 59, 53, 68] => :ed_prev_word, # Ctrl+←, extended entry + [27, 91, 49, 59, 51, 67] => :em_next_word, # Meta+→, extended entry + [27, 91, 49, 59, 51, 68] => :ed_prev_word, # Meta+←, extended entry }.each_pair do |key, func| config.add_default_key_binding_by_keymap(:emacs, key, func) config.add_default_key_binding_by_keymap(:vi_insert, key, func)