diff --git a/2012/hou/try.sh b/2012/hou/try.sh index f19b41c35..c62ad6643 100755 --- a/2012/hou/try.sh +++ b/2012/hou/try.sh @@ -15,14 +15,18 @@ 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: less hou.c (space = next page, q = quit): " +read -r -n 1 -p "Press any key to run show hou.c (space = next page, q = quit): " echo 1>&2 -less -X hou.c +less -rEXFK hou.c echo 1>&2 -read -r -n 1 -p "Press any key to run: ./hou ansi.txt hou.c | less -r (space = next page, q = quit): " +read -r -n 1 -p "Press any key to run: ./hou ansi.txt hou.c (space = next page, q = quit): " echo 1>&2 -echo "$ ./hou ansi.txt hou.c | less -r" +# Note: unlike the other try.sh/try.alt.sh scripts we don't use options that +# don't reset the terminal and that quit less(1) when it reaches EOF. This is +# because if we do the effect will vanish the moment they reach the EOF. Also if +# we don't have less(1) reset things the colour of the rest of the script will +# be wrong. Thus in this script the user must hit 'q' to finish this command. ./hou ansi.txt hou.c | less -r echo 1>&2