diff --git a/fill3/fill3/terminal.py b/fill3/fill3/terminal.py index 335e686..aba8764 100644 --- a/fill3/fill3/terminal.py +++ b/fill3/fill3/terminal.py @@ -25,6 +25,10 @@ BACKSPACE = "\x7f" ALT_BACKSPACE = ESC + BACKSPACE ALT_CARROT = ESC + "^" ALT_SEMICOLON = ESC + ";" +ALT_UP = ESC + "[1;3A" +ALT_DOWN = ESC + "[1;3B" +ALT_LEFT = ESC + "[1;3D" +ALT_RIGHT = ESC + "[1;3C" globals().update({f"ALT_{letter}": ESC + letter for letter in string.ascii_letters}) globals().update({f"CTRL_{letter}": chr(index + 1) for index, letter in enumerate(string.ascii_uppercase)})