Merge pull request #1845 from xexyl/birken2013-alt

Reword alt code suggestion in 2013/birken
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-01-10 14:04:45 -08:00
commit 66a1c2efee
13 files changed
+86 -72

No files matched your search

+4 -1
View File
@@ -56,9 +56,12 @@ CSTD= -std=gnu90
#
ARCH=
# Variable to simplify reconfiguring sleep time for alt code
#
SLEEP= 35000
# Defines that are needed to compile
#
CDEFINE= -DZ=35000
CDEFINE= -DZ=${SLEEP}
# Include files that are needed to compile
#
+8 -9
View File
@@ -4,6 +4,10 @@
make alt
```
We recommend that you use the alt version to see what the entry looked like back
in 1996. For the original version see the [original code](#original-code)
section.
## To use:
@@ -11,8 +15,7 @@ make alt
./eldby.alt
```
To see why we recommend the alternate version instead of the original version,
see the [original code](#original-code) section.
To quit send intr (typically ctrl-c).
NOTE: to reset the sanity of your terminal after this program ends try `reset`.
@@ -22,26 +25,22 @@ NOTE: to reset the sanity of your terminal after this program ends try `reset`.
This alternate version, which we recommend that you use in order to see what is
happening with modern systems, and to not flash too quickly, which can be
problematic for some people, can be configured to different speeds by way of the
value used in `usleep()`. The default is `-DZ=35000` but you can easily change
value used in `usleep()`. The default is `35000` but you can easily change
it. To do so try:
```sh
make CFLAGS+="-DZ=20000" clobber alt
make SLEEP=20000 clobber alt
./eldby.alt
```
## Original code:
Besides the fact that modern systems make it impossible to see what this program
does the rapid movement can be a problem for some people. It is for these
reasons that we recommend you first try the alternate version as described
above.
This version is the original which has no sleep time in between updates.
### Original build:
If however you wish to see the original version in modern systems, try:
```sh
make all