Skip to content

Commit

Permalink
Add home/end mapping for urxvt and relatives
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas authored May 19, 2020
1 parent 38676ba commit c30b293
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 c30b293

Please sign in to comment.