Rebuild Ghostty. Understand every piece.
Start with one Zig process. Add the App, PTY, parser, terminal state, native window, fonts, and GPU only when the previous version reaches a limitation.
HOW IT WORKS
01
Write it
Add only the code needed for the next observable behavior.
02
See it
Run the exact command and compare your result with a real captured artifact.
03
Compare it
Read the narrow historical and current Ghostty source that solves the production version.
DEPENDENCY FRONTIER
Build only what the current result needs
- 00Process entryReconstructed
- 01App lifecycleYou are here
- 02Runtime + SurfaceNext limitation
- 03Child process + PTYNot introduced
- 04I/O + parserNot introduced
- 05Terminal stateNot introduced
- 06Window + GPU + fontsNot introduced
CHAPTER 00
A process exists
Start with one Zig file, one build command, and one line of output. Understand every character before adding an App, PTY, parser, or window.
Field guides remain available
The existing ls, Codex, tmux, and SSH walkthroughs are retained as integration references. They are no longer the primary learning sequence.