From 5989b570dd82db88cefdd8d67d95fe00bb094b1b Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 31 Jan 2024 09:17:37 -0800 Subject: [PATCH] Improve 2019/adamovsky/try.sh --- 2019/adamovsky/try.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/2019/adamovsky/try.sh b/2019/adamovsky/try.sh index 463ec7a25..e4bd66cde 100755 --- a/2019/adamovsky/try.sh +++ b/2019/adamovsky/try.sh @@ -15,19 +15,17 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear +read -r -n 1 -p "Press any key to run: ./prog spam.unl | head -n 100 (space = next page, q =quit): " echo 1>&2 -echo "$ ./prog spam.unl | head -n 100 | less -EXF" 1>&2 -read -r -n 1 -p "Press any key to continue: " -echo 1>&2 -./prog spam.unl | head -n 100 | less -EXF +./prog spam.unl | head -n 100 | less -rEXFK echo 1>&2 -echo "$ ./prog sierpinski.unl | head -n 200 | less -EXF" 1>&2 -read -r -n 1 -p "Press any key to continue: " +read -r -n 1 -p "Press any key to run: ./prog sierpinski.unl | head -n 200 (space = next page, q = quit): " echo 1>&2 -./prog sierpinski.unl | head -n 200 | less -EXF +./prog sierpinski.unl | head -n 200 | less -rEXFK -echo "$ make identify" 1>&2 +read -r -n 1 -p "Press any key to run: make identify: " +echo 1>&2 make identify echo 1>&2