diff --git a/2000/dhyang/README.md b/2000/dhyang/README.md index 1153d899c..8d91289de 100644 --- a/2000/dhyang/README.md +++ b/2000/dhyang/README.md @@ -40,7 +40,7 @@ them with cool layout! For your enjoyment: 1. Compile [dhyang.c](dhyang.c). -2. Run `./dhyang` and pipe output to another `.c` file. +2. Run `./dhyang` and redirect output to another `.c` file. 3. Compile that file. 4. Repeat steps 2 and 3 until eventually the output cycles. @@ -53,7 +53,7 @@ terminal fonts to as close to square as possible. I hate to do this but you know, size... [dhyang.c](dhyang.c) and all its output compiles with gcc if your OS uses ASCII -character set. No file is included and all functions assume default int return +character set. No file is included and all functions assume default `int` return type (a source of compile warnings). diff --git a/2000/dhyang/try.sh b/2000/dhyang/try.sh index fdf9934d0..b032578a3 100755 --- a/2000/dhyang/try.sh +++ b/2000/dhyang/try.sh @@ -22,8 +22,9 @@ make saitou >/dev/null echo "$ ./saitou > aku.c" 1>&2 ./saitou > aku.c -echo "$ cat aku.c" -cat aku.c +read -r -n 1 -p "Press any key to run: cat aku.c (space = next page, q = quit): " +echo 1>&2 +cat aku.c | less -EXF echo "$ make soku >/dev/null" 1>&2 make soku >/dev/null @@ -31,8 +32,9 @@ make soku >/dev/null echo "$ ./soku > soku.c" 1>&2 ./soku > soku.c -echo "$ cat soku.c" 1>&2 -cat soku.c +read -r -n 1 -p "Press any key to run: cat soku.c (space = next page, q = quit): " +echo 1>&2 +cat soku.c | less -EXF echo "$ make zan >/dev/null" 1>&2 make zan >/dev/null @@ -40,8 +42,9 @@ make zan >/dev/null echo "$ ./zan > zan.c" 1>&2 ./zan > zan.c -echo "$ cat zan.c" 1>&2 -cat zan.c +read -r -n 1 -p "Press any key to run: cat zan.c (space = next page, q = quit): " +echo 1>&2 +cat zan.c | less -EXF echo "$ make aku >/dev/null" 1>&2 make aku >/dev/null