Small text editor bootstrapped from cat
The bootstrapping process consisted of the following stages:
- Write a rudimentary line editor on paper. Man pages are fair play.
- Use
cat
with shell redirection to write the stage 0 listing to a file. - Bootstrap stage 1 into a more stable, more mature line editor.
- Use the stage 2 line editor to write a bare-bones screen-based editor.
- Bootstrap stage 3 into a more usable, more capable screen editor.
# stage 4 (hit <c-h> for help)
make st4
bin/st4 src/st4.c
# stage 3 (hit <c-h> for help)
make st3
stty -icanon -echo -nl; bin/st3 src/st3.c; stty sane
# stage 2 (see `st2.c` for help)
make st2
bin/st2 src/st2.c
# stage 1 (no help page available)
make st1
bin/st1 src/st1.c
# stage 0 (no help page available)
make st0