Add curses test script

This commit is contained in:
Digital Studium 2024-04-13 21:57:11 +03:00
parent 31172ca6c5
commit f66a08c36f
2 changed files with 18 additions and 3 deletions

15
check_curses_key.py Normal file
View File

@ -0,0 +1,15 @@
import time
import curses
def draw(canvas):
while True:
key = canvas.getkey()
if key == ("\x1b"):
print(f"Вы ввели Escape!")
print(f"Вы ввели {key}")
if __name__ == '__main__':
curses.update_lines_cols()
curses.wrapper(draw)

View File

@ -129,9 +129,9 @@ fi
# install gui scripts
if ! command -v a &> /dev/null
then
wget https://git.digitalstudium.com/digitalstudium/gui-scripts/releases/download/1.3/gui-scripts_1.3-1.deb
sudo apt install -y ./gui-scripts_1.3-1.deb
rm -f gui-scripts_1.3-1.deb
wget https://git.digitalstudium.com/digitalstudium/tui-scripts/releases/download/1.13/tui-scripts_1.13-1.deb
sudo apt install -y ./tui-scripts_1.13-1.deb
rm -f tui-scripts_1.13-1.deb
fi
# install kubectl