From d83d39c244d7b9d2779d5e3827f0428fb4970dd5 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 27 Apr 2024 21:21:49 +0000 Subject: [PATCH] add CTRL-U/D for scrolling on win311 --- r0c/ivt100.py | 2 ++ r0c/user.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/r0c/ivt100.py b/r0c/ivt100.py index 376ffc3..23a375d 100644 --- a/r0c/ivt100.py +++ b/r0c/ivt100.py @@ -443,6 +443,8 @@ class VT100_Client(object): self.add_esc(u"\x0c", "redraw") # ^L (readline-compat) self.add_esc(u"\x12", "redraw") # ^R self.add_esc(u"\x0e", "view") # ^N + self.add_esc(u"\x15", "pgup") # ^U + self.add_esc(u"\x04", "pgdn") # ^D self.add_esc(u"\x01", "prev-chan") # ^A self.add_esc(u"\x18", "next-chan") # ^X self.add_esc(u"\x05", "alt-tab") # ^E diff --git a/r0c/user.py b/r0c/user.py index ceb6536..9720867 100644 --- a/r0c/user.py +++ b/r0c/user.py @@ -59,8 +59,8 @@ Keybinds: \033[36mHome\033[0m / \033[36mEnd\033[0m input field jump \033[36mPgUp\033[0m / \033[36mPgDown\033[0m chatlog scrolling... \033[1mtry it :-)\033[0m -if you are using a mac, PgUp is fn-Shift-PgUp -if your terminal is tiny, try \033[36m/mn\033[0m and \033[36m/cy\033[0m +* if your terminal is tiny, try commands \033[36m/mn\033[0m and \033[36m/cy\033[0m +* Cannot scroll? try these: \033[36mCTRL-U\033[0m \033[36mCTRL-D\033[0m \033[36m/u\033[0m \033[36m/d\033[0m """