Skip to content

Commit

Permalink
Merge pull request #60 from andreatulimiero/master
Browse files Browse the repository at this point in the history
Added Ctrl-* for latin alphabet #59
  • Loading branch information
magmax authored Feb 28, 2021
2 parents 3317549 + af7a57c commit 56f7b01
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions readchar/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,32 @@
ESC = "\x1b"

# CTRL
CTRL_A = "\x01"
CTRL_B = "\x02"
CTRL_C = "\x03"
CTRL_D = "\x04"
CTRL_E = "\x05"
CTRL_F = "\x06"
CTRL_Z = "\x1a"
CTRL_A = '\x01'
CTRL_B = '\x02'
CTRL_C = '\x03'
CTRL_D = '\x04'
CTRL_E = '\x05'
CTRL_F = '\x06'
CTRL_G = '\x07'
CTRL_H = '\x08'
CTRL_I = '\t'
CTRL_J = '\n'
CTRL_K = '\x0b'
CTRL_L = '\x0c'
CTRL_M = '\r'
CTRL_N = '\x0e'
CTRL_O = '\x0f'
CTRL_P = '\x10'
CTRL_Q = '\x11'
CTRL_R = '\x12'
CTRL_S = '\x13'
CTRL_T = '\x14'
CTRL_U = '\x15'
CTRL_V = '\x16'
CTRL_W = '\x17'
CTRL_X = '\x18'
CTRL_Y = '\x19'
CTRL_Z = '\x1a'

# ALT
ALT_A = "\x1b\x61"
Expand Down

0 comments on commit 56f7b01

Please sign in to comment.