Skip to content

Terminal: box-drawing lines are broken; Thai SARA AM and right-to-left or Indic text are not shaped #289

Closed

Description

@devswha

Left over from #268, which is closed now that Korean, Japanese and Chinese text, decomposed Vietnamese, the ⏺ bullet and emoji widths are fixed (#272, #273, released in v0.3.40).

These three were listed there as not covered:

Item Where Why it is not a small fix
Box-drawing lines ┌─┐ ━┃╋ are broken, and heavy lines are drawn like `- +` desktop Chrome and iPhone
Thai น้ำ: SARA AM (U+0E33) is drawn with a dotted circle iPhone herdr puts it in a cell of its own, and the grid follows herdr. Drawing it joined would mean drawing across cells.
Arabic, Hebrew, Devanagari: no bidi or complex shaping every platform The cell grid has no bidi or shaping; native terminals mostly lack them too.

Box drawing is the one most users will meet (agent TUIs draw frames with it). The other two are recorded as known limits.

Activity

  1. devswha commented on Oct 2, 2026

    @devswha
    OwnerAuthor

    The box-drawing part is fixed by #295.

    Box-drawing characters (U+2500-257F, all but the three diagonals) and the block elements (U+2580-259F) are drawn to the cell instead of taken from the font: uprights run through the rows, corners close, heavy and double lines look as they should, shades are even fills.

    Checked:

    • Desktop Chrome on an isolated herdr session, before and after screenshots of light, heavy, double, rounded and mixed boxes, dashes, blocks, a tree and a progress bar.
    • A pixel check at device pixel ratios 1, 1.5, 2 and 3: every upright sits on the same device pixels in each row it runs through.
    • iOS 27 simulator (iPhone 17 Pro, Safari), before (v0.3.41) and after: heavy lines are heavy, shades are fills, uprights continuous.
    • Underline, strikethrough, overline, dim and inverse on box characters.

    Not checked: a real iPhone, Android.

    The other two items here are limits of a cell grid and are not planned:

    • Thai SARA AM (U+0E33) drawn with a dotted circle on iPhone: herdr puts it in a cell of its own, and joining it would mean drawing across cells.
    • Arabic, Hebrew and Devanagari: the grid has no bidi or complex shaping; native terminals mostly lack them too.

    Closing with the actionable part done. If either of those two matters to you, say so here and it gets its own issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions