Loom

A blog engine that just works. One binary, no setup, no dependencies.

Posts tagged “ansi-escape” (2)

The Diff Engine — Only Paint What ChangedMar 15 10.8K

The heart of the renderer: compare two screen buffers cell by cell, emit the minimal ANSI to transform one into the other. Every optimization upstream exists to make this loop faster. Every optimization here directly reduces bytes to stdout.

--c++23 --diff-engine --ansi-escape --cursor-optimization --damage-rect --claude-code
The Problem — Why Terminals Are BrokenMar 03 7.2K

Two threads. One stdout. Total corruption. This is the bug that sent me reverse-engineering Claude Code's binary — and the fundamental reason every serious TUI needs a rendering engine.

--c++23 --terminal --tui --ansi-escape --race-condition --claude-code