Minor updates to thanks/bugs for 1992/westley
Another benefit of the removal of the 80 column wrapping restriction is that if one resizes the terminal after running it the map still will look the same - unless of course the terminal becomes too narrow.
This commit is contained in:
1 parent
6ac32f659e
commit
d52d57fee9
2 files changed
+10
-7
No files matched your search
@@ -824,9 +824,10 @@ Can you help us?
|
||||
### Information: [1992/westley/README.md](1992/westley/README.md)
|
||||
|
||||
Cody improved the usability of this program by making it so that as long as the
|
||||
terminal columns is >= 80 it will display properly. However due to the nature of
|
||||
the program if the terminal is < 80 in column width it will not display right.
|
||||
To see the number of columns in your terminal try:
|
||||
terminal columns is >= 80 it will display properly, rather than having to wrap
|
||||
at 80 columns. However due to the nature of the program if the terminal is < 80
|
||||
in column width it will not display right. To see the number of columns in your
|
||||
terminal try:
|
||||
|
||||
```sh
|
||||
echo $COLUMNS
|
||||
|
||||
+6
-4
@@ -1421,12 +1421,14 @@ as well to make the args of `main()` be the correct type and by moving the body
|
||||
of main() to another function, `pain()`, which does the work since not all
|
||||
versions of clang support four args to `main()`.
|
||||
|
||||
Cody also removed the restriction that one has a terminal that wraps at 80
|
||||
columns so that as long as the terminal's columns count (try `echo $COLUMNS`) is
|
||||
>= 80 it should work. As most people have wider terminals than back in 1992 this
|
||||
Cody also removed the restriction that one has to have a terminal that wraps at
|
||||
80 columns so that as long as the terminal's columns (try `echo $COLUMNS`) is >=
|
||||
80 it should work. As most people have wider terminals than back in 1992 this
|
||||
should help make it much easier to use. Note that if the number of columns is <
|
||||
80 it will not work right. The way this was done is that every 80 iterations in
|
||||
the final loop it prints another newline.
|
||||
the final loop it prints another newline. This fix has another bonus in that
|
||||
resizing the terminal after running it should not mess up the display either,
|
||||
unless of course it becomes too small.
|
||||
|
||||
Cody also added an arg check because the program and the
|
||||
[alternate version](1992/westley/westley.alt.c) might have crashed or
|
||||
|
||||
Reference in new issue
Block a user