libghostty-vt 1.0.2 released: correct widths for skin tone emoji, insert/delete line (IL/DL) fixes, up to 1.8x faster scrolling inside left/right margins (think tmux side-by-side panes or Neovim vertical splits), and more. Release notes below.
https://lib.ghostty.org/vt/release-notes.html
Bug Fixes:
- The mouse encoder no longer forgets the last cell when calling `ghostty_mouse_encoder_set_from_terminal` and setting the size now only forget it when the value actually changes. Previously, with `GHOSTTY_MOUSE_ENCODER_OPT_TRACK_LAST_CELL` on, motion in the same cell was reported again, so a click could come out as a press, a motion and a release. This isn't incorrect VT sequencing, but it was wasteful and unnecessary.
- With grapheme clustering (mode 2027), a skin tone modifier now makes an emoji that is text by default 2 cells wide, the same as VS16. For example, U+261D U+1F3FB (index pointing up, light skin tone) was 1 cell and is now 2. `ghostty_unicode_grapheme_width` changes the same way.
- Terminals created with the C API now ignore the Kitty drag and drop protocol (OSC 72), including its queries. The C API can't deliver drops yet, so programs registered for drops that never came instead of falling back.
- Insert and delete lines (IL and DL) no longer break the soft wraps of rows that move together. Previously a wrapped line in the scroll region, such as a long URL, became two lines until the program redrew it.
- Insert and delete lines with left and right margins no longer drop the semantic prompt marks (OSC 133) of the rows they move, so scrolling by prompts no longer skips prompts.
- Kitty graphics: Unicode placeholders no longer disappear when insert or delete lines with left and right margins move their row.
- A restored snapshot now keeps a pending wrap at any column, for both the cursor and the saved cursor (DECSC). Previously it was kept only on the last column, so with a right margin (DECSLRM) the next character overwrote the cursor cell instead of wrapping. The snapshot format is unchanged.
Performance:
- Insert and delete lines with left and right margins now move styled rows with a single copy. This is how tmux scrolls a pane next to another pane, and how Neovim scrolls a vertical split. A stream that does this went from 1,716 to 936 ms on x86_64 (1.8x) and from 1,100 to 695 ms on an M1 Pro (1.6x).
- Hyperlinks (OSC 8) are hashed in one pass instead of a byte at a time. `ls -laR --hyperlink=always` output is 1.3x faster.
- Carriage returns and absolute column moves (CHA, HPA) no longer look up the cursor's row again. Scrolling streams are up to 6% faster.
- Erasing cells skips rows that are already blank and releases styles a run at a time instead of a cell at a time. Erase-heavy streams are 3–6% faster.