Improve 2012/hou/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-26 09:24:33 -08:00
1 parent e7092d77f0
commit 75634c62bb
1 file changed
+8 -4
+8 -4
View File
@@ -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