Terminal borders that don't cost a cell(joshka.net)
421 points by vinhnx 16 days ago | 217 comments
tl;dr: The Ratatui maintainer proposes a new terminal protocol that draws thin borders on cell edges rather than consuming whole cells with Unicode box-drawing characters, freeing up rows/columns and enabling cleaner widgets like underlined text fields and single-row buttons. Borders are stored as a cell attribute (a 16-bit ID) with per-edge color, width, and style, negotiated via a DCS sequence with graceful fallback. A working prototype exists as a Ghostty patch with Ratatui demos, and the author is seeking feedback from terminal and TUI developers.
HN Discussion:
  • ↓Existing overstrike mode (DECSET 20) would be a better alternative than a new protocol
  • ~If changing terminal protocols anyway, be more ambitious with a full UI framework
  • ↓TUIs are becoming bloated GUI/browser reinventions, defeating their purpose
  • ↓Compatibility and fragmentation concerns make adoption risky for app authors
  • ↑Appreciates the innovation and finds the approach technically feasible to implement