Musings of a Fondue

Editor and Shell Tutorials

Two applications I want to have on the Homebrew Computer are a text editor and shell. To get an idea of how I can implement them, I searched the web for tutorials.

Text Editor

Jeremy Ruten has written an incredible tutorial on how to Build Your Own Text Editor. The end product is a small editor that in less than 1000 lines of C code, achieves the basic functionality needed to make a text editor useful.

Basic navigation:



Stephen Brennan has written a great tutorial on building a minimal shell. In very few lines of code, you achieve the functionality shown below:


Calling the editor:


Running through the tutorials has given me a very good idea of what I need to implement if I want to have similar applications running on the Homebrew Computer. For example, functionality like realloc, strcmp, and robust pointer handling are a must.