From c30b293f1cec41bc354ac47789ab8fde1f96625d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Pollak?= Date: Mon, 18 May 2020 21:13:49 -0400 Subject: [PATCH] Add home/end mapping for urxvt and relatives --- lib/reline/ansi.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 91f4cee3c7..c2082c1819 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -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