# This terminal protocol draws borders on cell edges, so they cost zero rows and columns

Original title: Terminal borders that don't cost a cell

> Hacker News story 50491423 · language: en · submitted 2026-11-13
> Web version: https://zeli.app/story/50491423
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 421 · by [vinhnx](<https://news.ycombinator.com/user?id=vinhnx>) · 💬 217
[original](<https://www.joshka.net/cell-borders/>) · [HN discussion](<https://news.ycombinator.com/item?id=50491423>)

## Summary

Ratatui maintainer Joshka has built a terminal protocol that draws thin lines on cell edges instead of using box-drawing glyphs, so borders no longer eat a row and column on every side. It's implemented as a Ghostty patch, with an earlier version in Rio, and demoed with Ratatui apps: panes, tabs, underlined text fields, rounded buttons, and braille charts with gridlines. Borders are cell attributes like background color, so they scroll and erase with text and never get copied. He's seeking feedback from terminal and TUI authors.

## Key quote

> Select some text inside a box and you get the box too. Everyone who's pasted from a TUI into Slack knows the little │ cleanup dance.

## HN discussion (217 comments)

### [nottorp](<https://news.ycombinator.com/item?id=50495559>)

> What worries me is that TUI used to mean light on your hardware unless it's doing actual work that you demanded.
>
> What's the reality with these new frameworks? Whenever I see one i worry that it renders at 144 Hz in a loop instead of redrawing only when something changes, for one. And let's not mention redrawing only the areas that have changed [1].
>
> Should I ask about ram consumption too?
>
> [1] ... which is why vi is the best editor to use over slow, unreliable links.

### [joouha](<https://news.ycombinator.com/item?id=50491778>)

> A much better alternative to this would be to for more terminal emulators to implement overstrike mode (DECSET 20, as available on the VK100). That way you could just draw border characters over existing text cells to achieve the same thing.
>
> Unfortunately mintty is the only terminal emulator I'm aware of which supports overstrike [0], as this would open up a world of new possibilities for TUI apps if more widely supported.
>
> [0] https://github.com/mintty/mintty/wiki/CtrlSeqs#overstrike

### [tptacek](<https://news.ycombinator.com/item?id=50491720>)

> I love this work and everything else Ratatui does but I have to ask: if you're changing the terminal protocol and the terminal itself to do this, why not do something more ambitious; a full monospaced information-dense UI framework, a terminal designed for user interfaces, rather than one designed to replicate the limitations of dumb terminals?

### [kodoman](<https://news.ycombinator.com/item?id=50492598>)

> This is pretty cool but this does feel like we are just reinventing another GUI display at this point.
>
> I don't generally like TUI's and think one gets more flexibility with raw text interfaces and being able to glue things together is more important then them looking nice. I think less fancy out put is better to be honest.

### [matheusmoreira](<https://news.ycombinator.com/item?id=50493761>)

> As awesome as this is, but I can't shake the feeling terminals are becoming lightweight browsers...

### [nixpulvis](<https://news.ycombinator.com/item?id=50493939>)

> Compatibility will always be the hard part with new standards like this. Given that most terminals already have some special handling of box drawing characters, I don't know if it's completely dead on arrival for implementors, but I don't love as an application author with ratatui, not knowing how the padding on my app will look. I might honestly rather disable this and know it'll be more consistent, than enable it and fragment my UI.

### [xixixao](<https://news.ycombinator.com/item?id=50495391>)

> Terminal is tempting, but I encourage ppl on herdr to give T3 code a try, gui is so much nicer to use for prompting at the least.

### [montroser](<https://news.ycombinator.com/item?id=50491626>)

> I appreciate the innovation happening with TUIs in these modern times.  But, aesthetically, I have to say, I like my borders to have some breathing room, which gets lost in this particular treatment.

---

## Cite

- Page: https://zeli.app/story/50491423
- Date: 2026-11-13
- Source: joshka.net (https://www.joshka.net/cell-borders/)
- Hacker News: https://news.ycombinator.com/item?id=50491423

## Other languages

- zh: https://zeli.app/zh/story/50491423 · markdown: https://zeli.app/zh/story/50491423.md
- ja: https://zeli.app/ja/story/50491423 · markdown: https://zeli.app/ja/story/50491423.md
- ko: https://zeli.app/ko/story/50491423 · markdown: https://zeli.app/ko/story/50491423.md
- de: https://zeli.app/de/story/50491423 · markdown: https://zeli.app/de/story/50491423.md
- es: https://zeli.app/es/story/50491423 · markdown: https://zeli.app/es/story/50491423.md
- ru: https://zeli.app/ru/story/50491423 · markdown: https://zeli.app/ru/story/50491423.md
