Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Oct 05:12

Added

  • Synchronized output — screen updates are marked as synchronized updates
    (mode 2026), so terminals that support them, such as kitty, WezTerm, foot,
    Ghostty or recent Windows Terminal versions, show each update only once it is
    complete, without flicker. They are not used inside tmux while sixel images
    are shown, as tmux then sends every image twice.

Changed

  • Large sixel split in bands inside tmux — tmux discards escape sequences
    longer than its input-buffer-size (1 MiB by default), so a sixel image
    larger than that disappeared as soon as it was scrolled fully into view and
    sent whole instead of clipped. Inside tmux, such images are now sent in
    horizontal bands that each stay below the limit.

Fixed

  • Opening links on Windows — a link's URL is no longer handed to
    cmd /C start, which read &, | and ^ in it as shell syntax:
    https://example.com/?a=1&b=2 was cut off at the & and the rest ran as a
    command of its own, so a crafted link in the paged text could run arbitrary
    commands when opened. URLs now reach the default handler unaltered.
  • Opening links on more platforms — links are opened through the
    open crate instead of a hard-coded launcher
    per OS, so they now also open on the BSDs, illumos and other Unix-likes, where
    nothing happened before; under WSL in the Windows default browser; and on Linux
    systems without xdg-open, falling back to gio, gnome-open or kde-open.
  • Sixel images opened twice — a sixel sequence that starts with a repeated
    introducer (ESC P q ESC P q …), as some tools emit, was measured as a single
    cell: no space was reserved for it and it was never clipped, so near the bottom
    of the screen it was drawn over the status line and scrolled the terminal. The
    first, aborted introducer is now dropped, as terminals do.
  • DCS strings that aren't images — every ESC P … string was taken for a
    sixel image, so terminal queries (DECRQSS ESC P $ q, XTGETTCAP ESC P + q)
    or tmux passthrough (ESC Ptmux;) in the text took up a blank cell and were
    sent to the terminal on every redraw. Only ESC P with numeric parameters and
    q counts as sixel now; other DCS strings are hidden in the pager and passed
    through unchanged when not paging.
  • Crash on an unterminated ESC P — a lone 0x9c byte was read as the C1
    string terminator, but in UTF-8 it is part of characters such as ✓, so
    ESC P followed later on the line by a ✓ crashed lessi. Only the UTF-8
    encoding of U+009C ends a DCS string now.
  • Flicker while scrolling — each screen update reached the terminal in
    dozens of small writes (1 KiB each, plus a separate one per image), so the
    terminal could show it half-drawn: images blanked out until their data
    arrived, the scrollbar wiped until it was drawn again at the end. Every update
    is now sent in a single write.
  • Scrolling on after a key is released — when a held key or the scroll
    wheel produced events faster than the terminal could draw, typically with
    large images on screen, each event was drawn in turn, so the screen kept
    scrolling for seconds after the key was released. All pending input is now
    handled before the screen is updated.

Changed

  • Less output for colourful text — colours and text attributes are only
    sent to the terminal when they change, not again for every run of text, which
    cuts the size of a screen update of coloured text by up to 80%.