Repository navigation
Breaking
driver.ProbeQueriescarries the kitty graphics query before DA1. Code
that matched the handshake byte for byte (a test terminal, a recording)
sees one more APC.testkit.SnapshotDiff.Expectedand.Actualarestring, notrune. A
cell holds a grapheme cluster as readily as a rune, and a message that
printed only the first rune of the cell did not say what differed.
Added
-
The capability handshake asks the kitty graphics query (a 1×1 picture,
never shown) and picks kitty's protocol when the terminal answers OK,
whatever it is called. kwi, KDE's terminal on libghostty, names itself
Kwi (libghostty 1.0.2), which no table knew, and lists no Sixel, so its
pictures were half blocks. A terminal that does not know APC prints the
query where the handshake's measurements go, and it is erased with them. -
Frame.ClearImageRegionsdrops the pictures placed so far in a frame, for
a scene drawn over the whole screen. The field it replaces became private
in v0.16.0 with no way left to do this. -
termimgshows sixel and iTerm2 pictures with the terminal's own kitty
protocol when the terminal has one (kwi, Ghostty): no overlay window, so it
works on Wayland, where kwi has no X11 window and pictures fell back to
half blocks. The program's own kitty commands then pass through unchanged. -
backdrop-shellnow builds and runs natively on Windows: ConPTY for the
shell and the scene terminals, console resize polling for window changes,
a PowerShellProfile.ps1hook forenable/disable, andinstall.ps1
alongsideinstall.sh. The Unix path is unchanged. On Windows a scene
cannot be paused without SIGSTOP, the terminal tab is not renamed after
the foreground program, and ending a scene stops the program itself, not
a job object holding everything it started (#133). -
LogViewdraws the ANSI escapes a program printed: SGR colours (16, 256
and truecolour, in;and:forms) and attributes are drawn, a reset
returns to the line's own level style, and every other sequence (cursor
moves, erases, OSC titles and links) is skipped. Highlights, sideways
scroll and the semantic tree work on the text without escapes. Before,
the ESC byte was dropped and[31mshowed as text. Still 0 allocs per
frame; a coloured line is stripped once, for the semantic tree, when it
first comes on screen. -
graphics.AppendKittyPlaceIDplaces a Kitty picture under a placement
id, andgraphics.AppendKittyDeletePlacementdeletes one placement. -
Terminal.Commit/Frame.CommitandUpdateResult.Commit: an inline
application prints a widget above its band, into the terminal's
scrollback, where it stays after exit and is never drawn again. A chat or
an agent commits finished messages and redraws only what still changes.
A height of zero is as tall as the widget needs (Markdown.Rows, else
SizeHint). On a full-screen terminal it returnsErrNotInline; a
Program's commits are dropped there. -
limoni.WithInlineFit(max)/Terminal.SetInlineFit: an inline band as
tall as the rows the frame draws in, up tomax. -
widgets.SettledMarkdown: splits a streaming reply into the blocks that
can no longer change and the rest, so the first can be committed. An open
code fence settles in batches of eight lines and is reopened with its
language. -
widgets.DiffView/DiffViewState: a highlighted line diff (Myers)
with context lines and gaps, 0 allocs per draw. -
testkit.Terminal.Committedanduitest.Page.WaitForScreen: tests see
the committed rows above the frame inScreen, and wait for text there. -
limoni new -template agent: a coding agent on the Claude API, inline,
with streamed replies committed to the scrollback and edits shown as
diffs to approve;-demoruns a scripted agent without a key. -
cell.Context.CellPixelW/CellPixelH(and the same onFrame): the
size of a terminal cell in pixels, whichTerminalreads from the driver
when the window size changes. Zero means unknown. They sit in the padding
afterStyle, soContextstays at 128 bytes.
Changed
-
FuzzyMatchscores the best alignment of the query instead of the first
one: it tries each position where the first query character occurs and
keeps the highest score. The scoring rules are unchanged. Forsplit,
widgets/splitpane.goscored 32 because the match began at thesof
widgets; it now scores 48 and ranks aboveapps/pikap/library_test.go.
This changes the order ofFuzzyFilter,FuzzyFilterBy,
FuzzyFilterByFieldsandAutocompleteresults, and the command palette
highlights the characters that were scored. Still 0 allocs per frame
(#82). -
Viewer3D{Pixels: true}renders the model at the terminal's cell size in
pixels instead of a fixed 8×16, which stays the fallback where the frame
does not know it. On a HiDPI screen with 16×32 cells the picture was
scaled up and blurry, and on cells that are not 1:2 (10×22) it was
stretched; it is now shown pixel for pixel. A change of cell size, as when
the font changes, renders a new picture. Still 0 allocs per moving frame
in the widget (#58). -
With Kitty's protocol, only the placements that changed are sent. Each
placement keeps an id tied to its cells; a frame places a new picture
before deleting the old one, and a full redraw still places everything
again. On a map of about a thousand small pictures a move went from
117 KB to about 5 KB, and Konsole no longer flashes between deleting and
placing. A picture that moves to new cells takes over a placement of the
same picture that is no longer used and moves it in one step, so a
scrolling map costs a placement per tile, as before, and nothing is
deleted until everything is placed. Frames still draw with 0
allocations. -
Konsole shows pictures with Kitty's protocol when it names itself in its
XTVERSION reply. Before, Limoni did not list it as showing pictures, and
the handshake chose Sixel because Konsole's DA1 reply lists it. Konsole
supports both since 22.04; Kitty's protocol works better of the two.
LIMONI_GRAPHICSstill overrides the choice. -
ProgressBarandSparklinedraw in the frame's theme (#97). With their
styles unset, a progress bar's filled cells take the theme'sprimary
role and its empty cellsmuted, and a sparkline's bars takeprimary.
An explicit style still wins. ASparklinewithout aColornow draws
its bars inStyle's foreground when it has one, as its comment said;
before, that foreground was ignored. -
BarChartandLineChartdraw in the frame's theme (#97). A bar or a
series without a colour takes the theme'sprimaryrole, and a chart
without aLabelStyleorAxisStyledraws its labels and axes in
muted. A colour or style the user set still wins, and without a theme
the charts keep their own cyan and grey. The legend dots ofLineChart
andPieChartnow sit on the chart's background; under a theme they
left a gap in the surface colour. -
ToastManagerdraws its cards in the frame's theme (#97): the card on
thesurfacerole, the message and the close mark inmuted, and the
border, badge and time-left bar of info, success, warning and error
toasts inprimary,success,warninganderror. The badge keeps a
tint of its colour over the card. Without a theme, toasts keep their own
dark colours. -
SelectandSliderdraw in the frame's theme (#97). A focused field
or thumb without aFocusedStyletakes the theme'sfocusrole, as
Buttonand the text inputs do, and so does the selected option of an
openSelectwithout aSelectedStyle. A slider's track and filled
part without styles takemutedandprimary. An explicit style still
wins, and without a theme they draw as before. -
PopupandStatusBardraw in the frame's theme (#97). A popup menu's
border without aBorderStyletakes the theme'sborderrole, as
Blockdoes, and withStyleunset its selected item takesfocusand
its disabled itemsmuted. A status bar's keys without aKeyStyleor
Styletakeprimary. An explicit style still wins, and without a
theme both draw as before. -
Dialogdraws in the frame's theme (#97). With its styles unset, the
body takes the theme'ssurfacerole, the title and message its text
colour and the sub-messagemuted; the border runs from theborder
role to thefocuscolour, which also fills the focused button, and the
other buttons sit on the surface tinted towards the border colour. An
explicit style still wins, and without a theme the dialog keeps its own
dark slate and red-to-magenta border. -
CalendarandAutocompletedraw in the frame's theme (#97). With a
calendar'sStyleunset, the month line and today take the theme's
primaryrole and the weekday namesmuted, unless their own styles
are set, and the selected day without aSelectedStyleis reversed in
thefocuscolour. So is an autocomplete's highlighted suggestion
without aSelectedStyleorSuggestionStyle. An explicit style still
wins, and without a theme both draw as before. -
FilePickerandSplitPanedraw in the frame's theme (#97). With a
picker'sStyleunset, directories take the theme'sprimaryrole, the
path row and file sizesmuted(the patherrorafter a failed
Load), unless their own styles are set, and the selected entry without
aSelectedStyleis reversed in thefocuscolour, its size included.
A split pane's divider without aDividerStyletakesborder, as
Blockdoes, andfocuswhile the pane is focused and no
FocusedDividerStyleis set. An explicit style still wins, and without
a theme both draw as before. -
CommandPalettedraws in the frame's theme (#97). With its styles
unset, the panel takes the theme'ssurfacerole and the search box
background. The border and separator takeborder, asBlockdoes.
The title, the selection marker and the matched letters takeprimary,
and the placeholder, details and result count takemuted. The
selected row is the surface tinted towards thefocuscolour. An
explicit style still wins, and without a theme the palette keeps its own
dark slate and cyan.
Fixed
-
Slider: itsStyleandFocusedStylereached the track, the filled
part and the thumb only when the frame had no style of its own, so
inside a styled block or a themed frame they were dropped and a slider
with aFocusedStyleshowed no focus. -
Select: under a frame style, the option under the mouse lost its
highlight; without aHoverStyleit now looks selected, as it did
without one. -
Dialogdraws a border in an ANSI colour in that colour. The colour's
code was read as RGB channels, soBorderStyle{Fg: cell.NewColorANSI(2)}
faded from near black to magenta instead of drawing green. -
ProgressBarwithShowPercentno longer allocates for its label on
every frame. -
Control characters read outside the kitty keyboard protocol are keys, not
text. Ctrl+Space (NUL) is Space with Ctrl, Ctrl+\ ] ^ _ (and Ctrl+/, which
most terminals send as Ctrl+_) are those runes with Ctrl, and an ESC prefix
adds Alt to the same key:ESC DELis Alt+Backspace, not the rune DEL. A
text input typed NUL and 0x1C–0x1F into its text, and Alt+Backspace never
reached a binding for it. -
LogView: with nothing selected, Down (orj) selects the first line on
screen, as Up (ork) selects the last. It selected the second line and
skipped the first. -
On the Linux console (
TERM=linux), F1–F5 are function keys. The console
sends them asESC [ [ A…E; the parser skipped the second[and read
F1–F4 as the arrow keys, and dropped F5. -
LogView: End (or settingFollowagain) after scrolling with the mouse
wheel follows the log once more. The wheel's offset was taken for a new
scroll on the next frame and turned following straight back off. -
termimg: the clear parts of a picture take a translucent terminal's
opacity when termimg starts with the terminal's window (alacritty -e termimg, or its own Xwayland relaunch): it read the window before it was
on screen and drew an opaque square.go installbuilds of termimg had
the square everywhere: they were pinned to a Limoni without the fix. -
termimg: pictures move with the text when the terminal shows its
scrollback (the wheel, Shift+PgUp). The terminal tells no program it has
scrolled, so the pictures stayed where they were over other lines; termimg
now reads the terminal's window, finds how many rows the text moved and
moves the pictures by as many. A picture pushed off the top by the next
one is kept above the screen and comes back into view as the scrollback
is scrolled up to it, a screen or more away; one jump of more than a
screen hides them until they can be placed again. Pictures nearly as large
as the window are followed too: the text that comes into view between them
is found among the rows seen when it was output.
Where that cannot be told for certain (a run of the same output, or
nothing beside the pictures to go by), they are hidden rather than put in
the wrong place; a window made taller or shorter keeps them, one made
wider or narrower lays its text out anew and drops those above the screen. -
termimg:
termimg commandkept the pictures only as long as the command
ran, so one that printed a picture and ended (gowall --preview) showed
it for a moment. When pictures are left on the screen, they now stay, on
the screen as the command left it, until a key is pressed; a command that
is a shell itself still ends termimg at once. -
termimg: a terminal made shorter scrolls its lines up to keep the cursor
on screen, and the pictures now go up with them; resizing no longer
leaves the pictures hidden until a key is typed. -
testkit.DiffSnapshotcompares two snapshots cell by cell and reports the
column the differing cell starts at, the column a cursor would move to. It
compared rune by rune, and a cell that holds a multi-rune cluster writes all
of its runes, so one cell that differed after an emoji or an accented letter
was reported as a handful of cells that shifted the rest of the row. This is
the message a failingAssertSnapshotprints. -
An inline band survives a terminal that reflows on a width change
(kitty, and others): the cursor waits at the end of the band's last row,
where the reflow leaves it findable, and the next frame climbs back by
the rows the band takes at the new width. Each inline row also erases
what an earlier, wider frame left to its right.