Add aliiases
This commit is contained in:
parent
f66a08c36f
commit
176f1715c0
|
@ -0,0 +1 @@
|
||||||
|
alias xc="xclip -selection clipboard" # копировать stdout
|
|
@ -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__':
|
||||||
|
|
Loading…
Reference in New Issue