Add aliiases

This commit is contained in:
Digital Studium 2024-04-23 06:55:42 +03:00
parent f66a08c36f
commit 176f1715c0
2 changed files with 4 additions and 1 deletions

1
.bash_aliases Normal file
View File

@ -0,0 +1 @@
alias xc="xclip -selection clipboard" # копировать stdout

View File

@ -2,12 +2,14 @@ import time
import curses import curses
def draw(canvas): def draw(canvas):
canvas.keypad(True) # нужно для работы с клавишами F1-F4
while True: while True:
key = canvas.getkey() key = canvas.getkey()
if key == ("\x1b"): if key == ("\x1b"):
print(f"Вы ввели Escape!") print(f"Вы ввели Escape!")
print(f"Вы ввели {key}") print(f"Вы ввели {key.encode()}")
if __name__ == '__main__': if __name__ == '__main__':