We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07560c2 commit 53f7d12Copy full SHA for 53f7d12
curtsies/events.py
@@ -12,9 +12,7 @@
12
chr_uni = chr
13
14
15
-CURTSIES_NAMES: Dict[bytes, str] = {}
16
-control_chars = {chr_byte(i): "<Ctrl-%s>" % chr(i + 0x60) for i in range(0x00, 0x1B)}
17
-CURTSIES_NAMES.update(control_chars)
+CURTSIES_NAMES = {chr_byte(i): "<Ctrl-%s>" % chr(i + 0x60) for i in range(0x00, 0x1B)}
18
for i in range(0x00, 0x80):
19
CURTSIES_NAMES[b"\x1b" + chr_byte(i)] = "<Esc+%s>" % chr(i)
20
for i in range(0x00, 0x1B): # Overwrite the control keys with better labels
0 commit comments