ctrl-L is screen redraw, fixes #3

This commit is contained in:
ed 2022-07-04 00:06:54 +02:00
parent 223229b01d
commit 4e8b136713
2 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@
**`CTRL-E`** jumps to the oldest unread message in another channel, or alt-tabs between two channels otherwise
**`CTRL-R`** is the `/r` command, redraws the screen to fix corruption. Use this if things are glitchy after resizing the terminal
**`CTRL-L`** is the `/r` command, redraws the screen to fix corruption. Use this if things are glitchy after resizing the terminal
**`CTRL-K`** followed by a number `0-9` or letter `a-f` changes colour mid-message, see `/cmap`

View File

@ -368,10 +368,11 @@ class VT100_Client(object):
self.add_esc(u"\x1b\x5b\x33\x7e", "del")
# hotkeys
self.add_esc(u"\x12", "redraw")
self.add_esc(u"\x01", "prev-chan")
self.add_esc(u"\x18", "next-chan")
self.add_esc(u"\x05", "alt-tab")
self.add_esc(u"\x0c", "redraw") # ^L (readline-compat)
self.add_esc(u"\x12", "redraw") # ^R
self.add_esc(u"\x01", "prev-chan") # ^A
self.add_esc(u"\x18", "next-chan") # ^X
self.add_esc(u"\x05", "alt-tab") # ^E
thr = threading.Thread(target=self.handshake_timeout, name="hs_to")
thr.daemon = True
@ -2246,7 +2247,7 @@ class VT100_Client(object):
but this is gonna be bad regardless
whenever the screen turns too glitchy
you can press CTRL-R and Enter to redraw
you can press CTRL-L and Enter to redraw
or run the command "/r" if that doesn't work
press A to accept or Q to quit&lm