All posts

18 posts

Rendering

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

  1. 3 min readRendering

    Quick look reads Markdown

    Quick look shows a Markdown file the way its author meant it to look. HTML headings, badges, alerts, pictures, wide tables, closed details blocks and diagrams, in the terminal. What it does, and one idea that did not survive.

  2. 4 min readRendering

    A picture on a terminal that cannot show pictures

    tuios already drew a sixel picture as block characters on a terminal without graphics. A kitty graphics picture got nothing, so chafa -f kitty printed no picture in VS Code. Now tuios assembles the kitty upload, decodes it and draws it through the same block glyph path, and the picture scrolls and clears with the text.

  3. 5 min readRendering

    Colour emoji in a screenshot, from three font tables

    tuios screenshot drew every emoji as a blank. A colour emoji font keeps its emoji as pictures, not outlines, in tables the Go font package does not read, and a flag or a family is one picture that only the font's own ligature table can find. shot reads sbix, CBDT and morx or GSUB now.

  4. 7 min readRendering, Agents

    An agent writes markup, and tuios draws it

    TML lets a script, a plugin or a coding agent show a small UI inside tuios. It writes a document, tuios checks it and draws it in your theme, and the answer goes back to the program. How the markup, the renderer and the rules around it fit together, with the costs.

  5. 7 min readRendering, Performance

    Mermaid diagrams in the terminal

    tuios mermaid draws Mermaid diagrams right in your terminal, as a picture or as text. It runs on sketch, a pure Go port of pele by kepano. Here is how the port stays faithful to pele, how the text drawings work, and what a perf pass against ondine bought.

  6. 11 min readRendering

    Why nord turned teal on 256-colour terminals

    At 256 colours, nord's grey ground #2e3440 came out as index 23, a teal, and Catppuccin Latte's red came out grey. The step-down picked from the colour cube by channel thresholds. The fix moved it to OKLab with a rule for neutrals, a test over all 344 bundled themes went from 339 wrong colours to 0, and one light theme is still not right.

  7. 8 min readRendering, Sessions

    A reattach lost the state that no cell shows

    One CI failure, "scrollback differs on 2 of 396 lines, first at column 37", was a pane snapshot that forgot a wrap was pending. Its review found five more pieces of terminal state a snapshot dropped, and the fix for one of them broke the character sets of a program that had already quit.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.