2024-04-01 04:44:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-04-01 05:02:59 +00:00
|
|
|
clear
|
2024-04-01 04:44:44 +00:00
|
|
|
while true; do
|
2024-04-01 04:51:44 +00:00
|
|
|
echo Listen to keys...
|
2024-04-01 04:44:44 +00:00
|
|
|
read -rsn1 input
|
|
|
|
if [ "$input" = "a" ]; then
|
|
|
|
a
|
2024-04-01 05:02:59 +00:00
|
|
|
elif [ "$input" = "f" ]; then
|
|
|
|
f
|
2024-04-01 04:44:44 +00:00
|
|
|
elif [ "$input" = "g" ]; then
|
|
|
|
g
|
|
|
|
elif [ "$input" = "s" ]; then
|
|
|
|
s
|
|
|
|
elif [ "$input" = "q" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
done
|