Skip to content

Bricktech2000/st4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

st4

Small text editor bootstrapped from cat

screenshot of editor

Method

The bootstrapping process consisted of the following stages:

  1. Write a rudimentary line editor on paper. Man pages are fair play.
  2. Use cat with shell redirection to write the stage 0 listing to a file.
  3. Bootstrap stage 1 into a more stable, more mature line editor.
  4. Use the stage 2 line editor to write a bare-bones screen-based editor.
  5. Bootstrap stage 3 into a more usable, more capable screen editor.

Usage

# 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

About

Small text editor bootstrapped from `cat`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published