From 176f1715c062c95adf064fb3e4f9f4e2beb7d25b Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Tue, 23 Apr 2024 06:55:42 +0300 Subject: [PATCH] Add aliiases --- .bash_aliases | 1 + check_curses_key.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .bash_aliases 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__':