Skip to content

Commit

Permalink
Merge pull request #149 from tomas/patch-1
Browse files Browse the repository at this point in the history
Add home/end mapping for urxvt and relatives
  • Loading branch information
aycabta authored May 19, 2020
2 parents 38676ba + c30b293 commit 0ea2cc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reline/ansi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def self.win?
[27, 71, 67] => :ed_next_char, # →
[27, 71, 68] => :ed_prev_char, # ←

# urxvt / exoterm
[27, 91, 55, 126] => :ed_move_to_beg, # Home
[27, 91, 56, 126] => :ed_move_to_end, # End

# GNOME
[27, 79, 72] => :ed_move_to_beg, # Home
[27, 79, 70] => :ed_move_to_end, # End
Expand Down

0 comments on commit 0ea2cc9

Please sign in to comment.