diff --git a/readchar/key.py b/readchar/key.py index 8fb83da..c7d4df5 100644 --- a/readchar/key.py +++ b/readchar/key.py @@ -2,7 +2,7 @@ LF = "\x0d" CR = "\x0a" ENTER = "\x0d" -BACKSPACE = "\x7f" +BACKSPACE = "\x08" SUPR = "" SPACE = "\x20" ESC = "\x1b" diff --git a/readchar/readchar.py b/readchar/readchar.py index fc35429..5c1a75d 100644 --- a/readchar/readchar.py +++ b/readchar/readchar.py @@ -53,10 +53,10 @@ 20960: key.PAGE_DOWN, 18400: key.HOME, 20448: key.END, - 18656: key.UP, - 20704: key.DOWN, - 19424: key.LEFT, - 19936: key.RIGHT, + 18432: key.UP, # 72 * 256 + 20480: key.DOWN, # 80 * 256 + 19200: key.LEFT, # 75 * 256 + 19712: key.RIGHT, # 77 * 256 } def readkey(getchar_fn=None):