All posts

11 posts

Rendering

What tuios draws, and the bugs that put the wrong thing on screen.

  1. 7 min readRendering, Testing

    One fuzz failure was the test, one was the emulator

    Two fuzz targets failed in tuios on the same evening. The kitty graphics target had an oracle that an allocator change left behind, and my first fix made it too lenient. FuzzModel found a real bug, a cut-off UTF-8 rune that ate the escape after it.

  2. 6 min readRendering

    The background vanished under a tab

    Under tmux, a few cells beside the Inbox title showed the terminal's own background instead of the panel's. The bytes tuios sent were right. bubbletea moved the cursor with a hard tab, and tmux 3.6 and later keep that tab as one cell that a later write breaks.

  3. 9 min readRendering

    The underline depended on which code drew it

    A focused tuios pane dropped SGR underline, and some unfocused panes dropped almost every attribute. tuios had five ways to draw a pane and only one kept everything, so the text changed when focus moved.

  4. 3 min readRendering

    The screenshot cell was half measured and half guessed

    Pane screenshots came out stretched. Two rounds of font maths got the cell shape wrong. The fix asks the host terminal for its real cell size in pixels.

  5. 3 min readRendering, Performance

    The renderer was drawing a backlog it had caused

    A flooded tuios pane kept painting 1.2 s after its source exited. The client's own renderer caused the backlog, and pacing by queued bytes halved the tail.

  6. 5 min readRendering, Performance

    A fifth of every frame went to changing nothing

    A profile put 19.8% of the tuios client in lipgloss.Wrap, rewrapping pane text already the right width. Skipping it was easy. Proving the skip safe was the work.

  7. 6 min readRendering, Testing

    My differential tests passed and the screen was pink

    A style cache keyed by recycled libghostty-vt style IDs painted ls output hot pink, and a differential test suite that compared once, at the end, missed it.

  8. 4 min readRendering, Web

    My multiplexer lied about what it could do

    kitty icat drew nothing when tuios ran in a browser client, because the graphics passthrough said yes to file transmission without asking the host.

  9. 7 min readRendering, Web

    The bug I closed three times: a speckled sprite in a WebGL terminal

    A speckled sprite in the tuios browser terminal. Three wrong closures, a test suite blind by construction, and a browser that salted its own pixel readback.

  10. 5 min readRendering, Web

    I ported a correct emoji width table and it fixed nothing

    Emoji widths were wrong in the tuios browser client. I ported ghostty's per-codepoint width table and nothing changed, because a terminal gives width to grapheme clusters, not to codepoints.

  11. 6 min readRendering

    I shipped three fixes for a bug I had not found

    A tuios pane went blank on focus changes. I shipped three real fixes for other bugs before I reproduced it, and the cause was a window width read from its first line.