Terminal borders that don't cost a cell

328 points · 143 comments on HN · read original →

Points and comments are a snapshot, not live.

Ratatui maintainer proposes terminal protocol for cell-edge borders that don't consume rows.

Joshka.net introduces a terminal protocol for drawing thin lines on cell edges rather than using Unicode box-drawing characters. The proposal includes a patch for Ghostty terminal, demo apps in Ratatui, and a DCS-based wire format. Cell borders store up to 12 line segments per cell with color, width, and style. Lines merge on shared edges using priority rules. Fallback to box-drawing characters occurs when the terminal lacks support. The Ghostty implementation adds about 1,650 lines; each cell gets a 16-bit border ID reusing existing padding. The spec and rationale are available on the author's Ghostty fork.

What commenters are saying

Some commenters prefer borders with breathing room and worry this encourages overly busy UIs. A top comment notes borders costing cells forces frugality, which is beneficial. Others suggest more ambitious redesigns: semantic terminal protocols, full UI frameworks, or ditching monospace entirely. A few share existing projects like bateri's view protocol, prompt, and ewm (emacs as Wayland compositor). One commenter warns kitchen-sink protocols risk becoming the web's complexity problem.