This commit is contained in:
ge
2023-03-21 02:48:44 +03:00
commit ed521e2e3c
9 changed files with 567 additions and 0 deletions

17
examples/readkey_2 Normal file
View File

@ -0,0 +1,17 @@
#!/bin/sh
. ../tui.sh
printf 'Press arrow keys, q to quit.\n'
while true; do
tui_readkey KEY
case "$KEY" in
Up) printf 'Move UP\n';;
Down) printf 'Move DOWN\n';;
Left) printf 'Move LEFT\n';;
Right) printf 'Move RIGHT\n';;
q|Q) break;;
*) :
esac
done