Skip to content
Trending storyPast story

Terminal cell border protocol proposed and implemented

1 report1 sourceupdated 3 days ago

What happened

AI digest

On November 14, the Hacker News front page covered a terminal cell border protocol from the Ratatui maintainer. It draws thin lines on cell edges instead of filling whole cells. An earlier version landed in Rio; this one ships as a Ghostty patch, with a demo app built in Ratatui. Each cell can carry up to 12 line segments, each with its own color, width, position and style. Borders scroll, erase and reflow with the text, and are not carried along by copy-paste. Compared with Unicode box-drawing characters, panels lose no row or column per side, and text fields can draw a line directly under the text.

Written by AI from the coverage · updated 3 days ago

Coverage

Follow the reports to see the story from different sides.

Nov 14
  1. Hacker News front page
    Terminal borders that don't cost a cell

    Ratatui 维护者提出一种终端协议,把细线画在单元格边缘而非占用整格,作为 Ghostty 补丁实现(更早版本进入 Rio),并用 Ratatui 构建了演示应用。每个单元格最多承载 12 段线,每段可独立设置颜色、宽度、位置和样式,边框随文本滚动、擦除与重排,且不会被复制粘贴带走。相比 Unicode 制表符方案,面板不再在每边损失一行一列,文本字段可直接在文字下方画线。

Heat over time

Heat now 3·Comparable peak 10(Nov 14 08:00)·Comparable change over 24 hours -50%

02.557.510Nov 1408:00Nov 1500:00Nov 1515:00Nov 1607:00

The trend only compares accounts observed without gaps, so its range may be smaller than the current heat. Hover or tap the chart for each hour; the left and right arrow keys step through it.