Twelve posts of theory. Now we build. A complete, compilable, interactive terminal renderer — style interning, 8-byte cells, cell-level diffing, transition cache, synchronized output, threaded compositor. Copy it. Compile it. Resize your terminal. Watch zero flicker.
Posts tagged “compositor” (2)
The spinner thread and the main thread both want stdout. They can't have it. The Compositor is the bouncer: one lock, one writer, zero corruption. Plus the self-pipe trick, mutable regions, and why the mutex must cover the write() syscall.