1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_word

https://github.com/ruby/reline/commit/e98ad3b486
This commit is contained in:
Yusuke Endoh 2019-12-19 23:13:21 +09:00 committed by aycabta
parent 644336eef5
commit fa1bf8ab37

View file

@ -11,6 +11,8 @@ class Reline::ANSI
[27, 91, 70] => :ed_move_to_end, # End [27, 91, 70] => :ed_move_to_end, # End
[27, 32] => :em_set_mark, # M-<space> [27, 32] => :em_set_mark, # M-<space>
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows [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 @@input = STDIN