I am using read for user input to perform some operation. The selector uses a two character test to print the appropriate information, without requiring the user to press ENTER after his input. Would it be possible to accept the q value to exit, because it is not composed of a two character selector.
local done="false"
while [ "$done" != "true" ]
do
echo ; read -n 2 lsk
case $lsk in
"1L")
echo "$navaid_vscal"
echo -e "$tacrgm"
;;
q)
done="true" # ends while loop
echo -n "$sgr"
;;
*)
## repeats while do
;;
esac
done