Skip to content

Commit 4e8b136

Browse files
committed
ctrl-L is screen redraw, fixes #3
1 parent 223229b commit 4e8b136

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/help-hotkeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
**`CTRL-E`** jumps to the oldest unread message in another channel, or alt-tabs between two channels otherwise
1212

13-
**`CTRL-R`** is the `/r` command, redraws the screen to fix corruption. Use this if things are glitchy after resizing the terminal
13+
**`CTRL-L`** is the `/r` command, redraws the screen to fix corruption. Use this if things are glitchy after resizing the terminal
1414

1515
**`CTRL-K`** followed by a number `0-9` or letter `a-f` changes colour mid-message, see `/cmap`
1616

r0c/ivt100.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,11 @@ def __init__(self, host, socket, address, world, usr):
368368
self.add_esc(u"\x1b\x5b\x33\x7e", "del")
369369

370370
# hotkeys
371-
self.add_esc(u"\x12", "redraw")
372-
self.add_esc(u"\x01", "prev-chan")
373-
self.add_esc(u"\x18", "next-chan")
374-
self.add_esc(u"\x05", "alt-tab")
371+
self.add_esc(u"\x0c", "redraw") # ^L (readline-compat)
372+
self.add_esc(u"\x12", "redraw") # ^R
373+
self.add_esc(u"\x01", "prev-chan") # ^A
374+
self.add_esc(u"\x18", "next-chan") # ^X
375+
self.add_esc(u"\x05", "alt-tab") # ^E
375376

376377
thr = threading.Thread(target=self.handshake_timeout, name="hs_to")
377378
thr.daemon = True
@@ -2246,7 +2247,7 @@ def delayed_join(usr, chan):
22462247
but this is gonna be bad regardless
22472248
22482249
whenever the screen turns too glitchy
2249-
you can press CTRL-R and Enter to redraw
2250+
you can press CTRL-L and Enter to redraw
22502251
or run the command "/r" if that doesn't work
22512252
22522253
press A to accept or Q to quit&lm

0 commit comments

Comments
 (0)