Skip to content- Sources: primary, discussion
- Summary: Josh McKinney published a draft version 1 spec for cell borders, a cell attribute set through a DCS string where each cell carries up to twelve segments with their own color, width, style and placement, merged on shared edges by priority. Apps detect support with a capability query followed by DA1 and fall back to box-drawing characters. His Ghostty branch implements it in about 1,650 lines by storing a 16-bit border ID in existing cell padding, with Ratatui demo apps on a separate branch, and he asks terminal and TUI authors for feedback in a Ghostty discussion.
- Why it matters: If terminals adopt it, TUIs could draw panels, underlined fields and chart gridlines without spending rows on box characters or copying borders into pasted text.
- Background: Terminal UIs draw borders with Unicode box-drawing glyphs, which occupy whole cells, so nested panels lose rows and columns. DCS (Device Control String) is the escape sequence family terminals use for structured commands, and terminals ignore DCS strings they do not recognize. Prior art includes DEC ruled lines, SGR framing attributes and Win32 console cell grid flags, none of which offer per-edge color and width.
- Comments: The Hacker News thread drew 208 points and 86 comments. A commenter proposed overstrike mode (DECSET 20) instead, and McKinney said tmux drops unknown DCS sequences and would need about a thousand lines to support the state. He expects Ghostty, Rio and Kitty could adopt it more easily than Terminal.app, and said the Ratatui change is a proof of concept on his fork.