Minor fixes in 2006/toledo1/try.sh

If one does not hit enter for the prompting of the press any key the
next echo will be on the same line.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-22 09:56:47 -08:00
1 parent 95ca0ca008
commit bfc111cb80
1 file changed
+18
+18
View File
@@ -17,30 +17,48 @@ clear
read -r -n 1 -p "Press any key to run: ./toledo1 00: "
echo 1>&2
./toledo1 00
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 30: "
echo 1>&2
./toledo1 30
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 99: "
echo 1>&2
./toledo1 99
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 42: "
echo 1>&2
./toledo1 42
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 11 # start is A8: "
echo 1>&2
./toledo1 11 # start is A8
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 18 # start is H8: "
echo 1>&2
./toledo1 18 # start is H8
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 81 # start is A1: "
echo 1>&2
./toledo1 81 # start is A1
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 88 # start is H1: "
echo 1>&2
./toledo1 88 # start is H1
echo 1>&2
read -r -n 1 -p "Press any key to run: ./toledo1 44 # start is D5: "
echo 1>&2
./toledo1 44 # start is D5
echo 1>&2
echo "What happened with the last ones?" 1>&2