From dac9ab0c6b524d2fcc244b40e720ec0ee01f94be Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 23 Nov 2023 14:39:26 +0000 Subject: [PATCH] Add support for ctrl+pgup/dn under rxvt --- src/textual/_ansi_sequences.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textual/_ansi_sequences.py b/src/textual/_ansi_sequences.py index 43b7102c89..13280943a9 100644 --- a/src/textual/_ansi_sequences.py +++ b/src/textual/_ansi_sequences.py @@ -167,6 +167,8 @@ "\x1b[3^": (Keys.ControlDelete,), # rxvt "\x1b[5;5~": (Keys.ControlPageUp,), "\x1b[6;5~": (Keys.ControlPageDown,), + "\x1b[5^": (Keys.ControlPageUp,), # rxvt + "\x1b[6^": (Keys.ControlPageDown,), # rxvt "\x1b[3;6~": (Keys.ControlShiftDelete,), "\x1b[5;6~": (Keys.ControlShiftPageUp,), "\x1b[6;6~": (Keys.ControlShiftPageDown,),