The left pane shows a Ratatui demo using cell borders; the right pane falls back to Unicode box characters, losing rows and columns.
*Joshka's new terminal protocol draws thin lines on cell edges, freeing rows and columns for content. The change could reshape TUI layout conventions.*
On November 13, 2026, a post on Joshka.net unveiled a terminal protocol that draws thin lines on the edges of cells instead of using traditional box‑drawing characters. The author, maintainer of the Ratatui TUI library, describes the work as a patch to Ghostty, with an earlier version in Rio. The goal is to eliminate the space loss caused by borders that traditionally consume whole rows and columns. By treating borders as cell attributes, the protocol lets UI elements sit flush against panel edges, preserving screen real estate on a typical 16" laptop terminal of roughly 200×50 cells. The post includes side‑by‑side screenshots that illustrate how panels retain full height and width when cell borders are active, versus the cramped layout when falling back to Unicode glyphs.
Traditional box‑drawing uses 128 Unicode glyphs, each occupying a full cell. The new protocol treats borders as cell attributes, like background color, allowing up to twelve line segments per cell. Segments cover halves of each edge and four center arms, each with independent color, width, and style. Because borders are drawn over the grid, they never consume a row or column. When two adjacent cells draw on the same edge, the lines merge into a single stroke, preserving visual continuity without extra padding.
Developers can place tabs, text fields, and buttons directly on cell edges. Panels no longer lose a row and column on every side, so logs retain full line counts and notes wrap as intended. Rounded corners can be colored correctly, avoiding the stray square artifact of box glyphs. Charts that fill each cell with braille dots can now overlay gridlines without sacrificing data points. Because borders are not text, copy‑and‑paste omits the decorative lines, eliminating the "│ cleanup dance" that plagues Slack pastes.
Box‑drawing characters are baked into Unicode and terminal emulators, making them the default low‑cost solution. Implementing a new attribute system requires changes to the terminal's rendering engine, as demonstrated by patches to Ghostty and an earlier Rio version. The protocol also relies on splitting edges into halves to align with quadrant block characters, a nuance most terminals have never needed to support.
The Ghostty patch compiles and runs demo apps built with Ratatui, showing functional panes, menus, and charts. The author invites feedback from terminal and TUI authors, indicating the code is usable but still under community review. No claim of official release or widespread adoption appears in the source.
Cell borders are a cell attribute that can draw up to twelve line segments on a cell's edges, allowing thin lines without using a full character cell.
Because borders are drawn over the cell grid, they do not consume an entire row or column, unlike box‑drawing glyphs that take up a full cell.
Yes, the protocol supports solid, double, dashed, or dotted lines, and corners can be square or rounded with configurable radius and anti‑aliased arcs.
If the Ghostty community embraces the patch, terminal‑based applications could finally shed the legacy padding that has hampered UI density for years. The protocol promises cleaner designs, tighter layouts, and fewer copy‑paste artifacts. Until major emulators integrate the attribute, developers will have to choose between the new demo or the space‑hungry box characters. The next wave of TUI tools may hinge on whether this cell‑border concept gains traction beyond the experimental demos.
Sources: [Hacker News post "Terminal borders that don't cost a cell" by Joshka, 2026-11-13]