From 3419e33e972e1dace1757e4f5b69a472dd8c4ad6 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:18:30 -0800 Subject: [PATCH] Improve 2013/cable2/try.sh --- 2013/cable2/try.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/2013/cable2/try.sh b/2013/cable2/try.sh index a03c6dbec..1ae4ed99a 100755 --- a/2013/cable2/try.sh +++ b/2013/cable2/try.sh @@ -37,7 +37,8 @@ read -r -n 1 -p "Press any key to extract and compile C code by OCR: " echo 1>&2 echo "$ ./cable2 hello_world.bmp | gcc -xc -o hello -" 1>&2 ./cable2 hello_world.bmp | gcc -xc -o hello - -echo "$ ./hello" 1>&2 +read -r -n 1 -p "Press any key to run: ./hello: " +echo 1>&2 ./hello echo 1>&2 @@ -45,7 +46,8 @@ echo "Sometimes typeset text will work if the typeset has characters that are" 1 echo "enough to support the handwritten shapes." 1>&2 read -r -n 1 -p "Press any key to try Menlo 160pt text: " echo 1>&2 -echo "$ ./cable2 typeset.bmp" 1>&2 +read -r -n 1 -p "Press any key to run: ./cable2 typeset.bmp: " +echo 1>&2 ./cable2 typeset.bmp echo 1>&2