diff options
author | aycabta <aycabta@gmail.com> | 2019-11-15 16:50:11 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-11-15 16:50:40 +0900 |
commit | fa7618e4c1b382cb5863161017ef89116af3e24f (patch) | |
tree | 5aa327533c1cd5a6b78152ba09c92cc1d6416dac /lib/reline/ansi.rb | |
parent | 6744593b8cd836967b40a4d76a9ac301b9e0f973 (diff) | |
download | ruby-fa7618e4c1b382cb5863161017ef89116af3e24f.tar.gz |
Implement em_set_mark and em_exchange_mark
Diffstat (limited to 'lib/reline/ansi.rb')
-rw-r--r-- | lib/reline/ansi.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index b0f4d3dbff..12ae903186 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -6,7 +6,9 @@ class Reline::ANSI [27, 91, 68] => :ed_prev_char, # ← [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, 68] => :ed_prev_char, # ← + [27, 32] => :em_set_mark, # M-<space> + [24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows } @@input = STDIN |