Add curses test script
This commit is contained in:
parent
31172ca6c5
commit
f66a08c36f
|
@ -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)
|
|
@ -129,9 +129,9 @@ fi
|
||||||
# install gui scripts
|
# install gui scripts
|
||||||
if ! command -v a &> /dev/null
|
if ! command -v a &> /dev/null
|
||||||
then
|
then
|
||||||
wget https://git.digitalstudium.com/digitalstudium/gui-scripts/releases/download/1.3/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 ./gui-scripts_1.3-1.deb
|
sudo apt install -y ./tui-scripts_1.13-1.deb
|
||||||
rm -f gui-scripts_1.3-1.deb
|
rm -f tui-scripts_1.13-1.deb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install kubectl
|
# install kubectl
|
||||||
|
|
Loading…
Reference in New Issue