Skip to content

Commit 788f0df

Browse files
committed
Support GNOME style Home/End key sequences
1 parent 5bf8550 commit 788f0df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/reline/ansi.rb

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def self.encoding
1515
[27, 91, 52, 126] => :ed_move_to_end, # End
1616
[27, 91, 72] => :ed_move_to_beg, # Home
1717
[27, 91, 70] => :ed_move_to_end, # End
18+
[27, 79, 72] => :ed_move_to_beg, # Home
19+
[27, 79, 70] => :ed_move_to_end, # End
1820
[27, 32] => :em_set_mark, # M-<space>
1921
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
2022
[27, 91, 49, 59, 53, 67] => :em_next_word, # Ctrl+→

0 commit comments

Comments
 (0)