18 lines
325 B
Plaintext
18 lines
325 B
Plaintext
|
#!/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
|