Minor improvements to 2000/dhyang/try.sh
The script dumped text too fast as there are numerous commands with long output. The script now prompts with 'read'. Minor fix in README.md file.
This commit is contained in:
1 parent
71e84553cc
commit
cb2d9c273d
2 files changed
+11
-8
No files matched your search
@@ -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).
|
||||
|
||||
|
||||
|
||||
+9
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user