diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..13a5db9 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1 @@ +alias xc="xclip -selection clipboard" # копировать stdout diff --git a/check_curses_key.py b/check_curses_key.py index c304151..96eb066 100644 --- a/check_curses_key.py +++ b/check_curses_key.py @@ -2,12 +2,14 @@ import time import curses + def draw(canvas): + canvas.keypad(True) # нужно для работы с клавишами F1-F4 while True: key = canvas.getkey() if key == ("\x1b"): print(f"Вы ввели Escape!") - print(f"Вы ввели {key}") + print(f"Вы ввели {key.encode()}") if __name__ == '__main__':