Skip to content

Commit 56f7b01

Browse files
authored
Merge pull request magmax#60 from andreatulimiero/master
Added Ctrl-* for latin alphabet magmax#59
2 parents 3317549 + af7a57c commit 56f7b01

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

readchar/key.py

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,32 @@
88
ESC = "\x1b"
99

1010
# CTRL
11-
CTRL_A = "\x01"
12-
CTRL_B = "\x02"
13-
CTRL_C = "\x03"
14-
CTRL_D = "\x04"
15-
CTRL_E = "\x05"
16-
CTRL_F = "\x06"
17-
CTRL_Z = "\x1a"
11+
CTRL_A = '\x01'
12+
CTRL_B = '\x02'
13+
CTRL_C = '\x03'
14+
CTRL_D = '\x04'
15+
CTRL_E = '\x05'
16+
CTRL_F = '\x06'
17+
CTRL_G = '\x07'
18+
CTRL_H = '\x08'
19+
CTRL_I = '\t'
20+
CTRL_J = '\n'
21+
CTRL_K = '\x0b'
22+
CTRL_L = '\x0c'
23+
CTRL_M = '\r'
24+
CTRL_N = '\x0e'
25+
CTRL_O = '\x0f'
26+
CTRL_P = '\x10'
27+
CTRL_Q = '\x11'
28+
CTRL_R = '\x12'
29+
CTRL_S = '\x13'
30+
CTRL_T = '\x14'
31+
CTRL_U = '\x15'
32+
CTRL_V = '\x16'
33+
CTRL_W = '\x17'
34+
CTRL_X = '\x18'
35+
CTRL_Y = '\x19'
36+
CTRL_Z = '\x1a'
1837

1938
# ALT
2039
ALT_A = "\x1b\x61"

0 commit comments

Comments
 (0)