Changelog
User-visible changes to github.com/ows4444/tui. The format loosely follows
Keep a Changelog 1.1.0. Before v1.0
a minor release may remove or change exported identifiers; each one is a
- BREAKING: entry.
A removed or changed exported identifier needs a - BREAKING: entry under
Unreleased that names it; see CONTRIBUTING.md.
[Unreleased]
Section titled “[Unreleased]”[1.0.0-rc.2] - 2026-10-18
Section titled “[1.0.0-rc.2] - 2026-10-18”Release candidate for v1.0.0, condition 7 of docs/v1.md. It replaces
1.0.0-rc.1, which was cut before matrix rounds 3 to 5, the rebuilt examples and
the avatar work: the week of soak has to be run on the code that becomes v1.0.0.
The only breaking changes since rc.1 are in avatar, which was experimental
then (the first - BREAKING: entry in Changed below). avatar is now
Stable-ish, and a breaking change found in the week it is out would be a reason
to cut an rc.3.
The example programs were rebuilt: 45 programs under examples/, new or rewritten, (a file manager, notepad, calculator, kanban board, paint, snake, minesweeper, SQL browser, log viewer, charts, hex editor, markdown studio, theme studio, layout lab, input lab, agent shell, workspace and desktop, router apps, a gallery of overlays, loading states and fields, and more), each with a size-matrix test and a screen on the Examples page. The programs they replace (agentshell, asyncload, avatar, buildlog, canvas, controls, cursorfield, diskuse, faces, focus, form, gallery, inlinebuild, inlinechat, inlinespinners, inlinetall, inputs, inspector, inventory, jsonview, list, logbrowser, loginflow, menus, mixedscreen, newproject, panes, pickers, procstream, router, setupflow, splashscreen, splitedit, table, themefollow, timers, welcomescreen) were removed; tui demo is the widget catalog. The example programs follow the terminal between its dark and light theme (tui.WithTheme, WithColorSchemeReports), give a screen reader plain text under ACCESSIBLE=1, and write no file unless asked to with a flag (paint and themestudio take -out). examples/internal/ui holds what they share. examples/probe stays: it is the program the Windows pseudo-console and pty tests drive.
avatar faces: bodies can wear an accessory (ears, bunny, antenna, tuft, horns) and have capsule, dot, oval or slit eyes (Model.Accessory, Model.Eyes); expressions gain eyebrows and a mouth where the cells are small enough; SVG draws the current pose. Colours follow the theme: the body keeps 3:1 against the plate or page, and the eyes 4.5:1 against the body. Names longer than 256 bytes are cut before hashing; case folding and NFC use tables inside internal/normname, frozen at Unicode 17. The reference vectors were regenerated once for all of this, before the first v1 tag.
avatar: Model.X, Y and Bounds, and Update follows mouse events: the idle loop runs and the eyes look at the pointer while it is over the avatar, and a left click makes it React.
avatar: Model.DrawCells (a tui.CellDrawer, the same picture as View), Model.Decorative (Linearize says nothing), and one bounded cache shared by every Model from New, so a list that makes a Model for each row on every frame no longer redraws them (100 rows: 13.8 ms to 0.18 ms).
tui demo [-list] [widget]: an interactive catalog of 28 widgets and layouts, with the mouse. A filterable list on the left, the selected one live on the right with its code below, a key to change the theme, and the last message the widget sent (docs/devtools.md).
layout.MergedRow and MergedColumn: Row and Column with no gap in which each child overlaps the next by one cell, so bordered boxes share their border and the places where they meet become junctions (┬ ┴ ├ ┤ ┼), in thin, rounded, heavy, double and ASCII borders; nest them for a grid of boxes (docs/layout.md).
In the alternate screen the cell renderer scrolls a block of rows that only moved (a log, a list) with the terminal’s scroll region instead of rewriting it: 10 one-line scrolls of a 100x40 log cost 1,089 bytes instead of 36,952. Set TUI_NO_SCROLL_REGIONS=1 to turn it off (docs/rendering.md).
prompt.Parse[T], Int, Float, Duration and Path: prompts that return a typed answer. A text that does not parse is refused with a message under the question and the question stays open, so the caller never parses again (docs/cookbook.md).
widgets.TableCells and TableOptions: a static table with a column alignment (layout.AlignEnd for numbers), a style for each row and a style for each cell (CellStyle(row, col)), so a status column or a negative number can be coloured; Table is TableCells with no options. datatable already had both.
tui.WithCaptureOutput(true): while Run is going, what the process writes to os.Stdout, os.Stderr and the standard logger is committed above the live region line by line (as Println and Eprintln do) instead of garbling the frame; Suspend and EditInEditor still get the real terminal (docs/program.md). Off by default.
Editor aids on textarea, all off by default: HighlightCursorLine, MatchBrackets, ShowWhitespace and Ruler (with CursorLineColor, RulerColor and WhitespaceMark). They draw over the text, a Highlighter and a selection, and work with soft wrap and Height (docs/input.md).
layout.AutoGrid and AutoGridGaps: as many equal columns as fit the width, each at least minWidth wide, never more than there are cells (AutoGrid(20, 1, cards...)), where GridNode takes a fixed list of tracks and Responsive swaps whole layouts at breakpoints you choose (docs/layout.md).
TypeAhead on picker, menu, treeview, filepicker and datatable, and Label on virtuallist: typing letters jumps to the next item whose label starts with them (a repeated letter goes on, a longer word is searched from where it began, a pause of a second starts a new one); keys a binding uses keep their meaning (docs/input.md). Off by default.
Mnemonics: a button, buttongroup or tabs label such as "&Save" draws as “Save” with S underlined and is pressed (or its tab activated) with Alt+S; "&&" is a literal ampersand. button.Model gains Mnemonic and IsMnemonic, and the hot key works whether or not the widget has focus (docs/input.md). A label with no marker draws exactly as before.
KillRing on textinput and textarea (off by default): Ctrl+K, Ctrl+U and Ctrl+W save what they delete in a ring of 16, kills in a row join, KeyMap.Yank (Ctrl+Y) inserts the newest and KeyMap.YankPop (Alt+Y) cycles older ones. With the ring on and something in it, Ctrl+Y yanks instead of redoing (docs/input.md).
tui.EditInEditor(id, text, ext) and EditedMsg: hand a text to the user’s $VISUAL or $EDITOR through a private temporary file and get the edited text back, with the terminal released and restored as Suspend does (docs/program.md).
chart.Marker and chart.NewCanvasMarker: a Canvas can draw with Sextant, Quadrant, HalfBlock or Block glyphs instead of braille dots (shades on an ASCII theme), and PlotOptions.Marker passes the choice to Plot. The zero value is Braille, so nothing changes unless it is set.
spinner.Presets, Lookup and Model.WithPreset: 18 named animations (dots, arc, arrow, bouncingBar and more, from the cli-spinners set) with their interval, and plain -\|/ frames on an ASCII-only theme.
tui.WithColorFilter(f) and ansi.FilterColors: pass every colour the Program paints through a function before the colour profile is applied, with ready filters ansi.Grayscale, Protanopia, Deuteranopia, Tritanopia and Dim (docs/accessibility.md). A root model that draws through DrawCells is drawn from its View string while a filter is set.
New experimental package dropdown: a closed one-line control that shows the chosen option and opens a list of the others (Enter or Space or Down opens, arrows move, typing letters jumps, Enter chooses, Esc closes; Left and Right step while closed), with ChangedMsg, a scrolling list, the mouse, and Popup for floating the list with popover.
ansi.Markup, ParseMarkup and EscapeMarkup: styled Text from a string with inline tags ([bold red]error[/] in [link=https://example.com]the docs[/]), with \[ to write a bracket and EscapeMarkup for text that is not yours. Text is cleaned as NewText cleans it, so markup cannot carry terminal codes.
New experimental package tuislog: a log/slog Handler that writes one styled line per record (time, level in its theme colour, message, key=value attributes), sanitised so a record cannot carry escape sequences. ToProgram commits each line above the live region like tui.Println; New hands it to any function.
form.Model implements tui.CellDrawer (DrawCells): the text and secret fields draw straight into the cell grid and descriptions and errors are written as styled text; 8 fields cost 12.6 µs and 16 allocations a frame instead of 40 µs and 298 through View. The other kinds of field and the group header still draw from their View string.
New example examples/ssh: serves a chat lobby over SSH, one Program per connection and one shared room, with the pty and window-change requests answering Terminal.Size and Resizes. It is a separate module (it needs golang.org/x/crypto), tested in CI on its own (docs/program.md).
New command tui dev [package]: builds a program, runs it and rebuilds and restarts it when the source of its module changes (docs/devtools.md); the README states what the Windows console needs.
New experimental package termpane: runs a program on a pseudo-terminal (darwin and linux) and draws its screen in a pane, with keys, bracketed paste, mouse reports, resize, scrollback and a terminal emulator that treats the output as untrusted (docs/background-work.md).
New experimental package motion/fx: cell effects (Fade, Dissolve, Slide, Sweep) with Wrap for any layout.Node, Out, and Progress (eased, 1 at once under reduced motion); ansi gains Color256.RGB and BasicColor.RGB, cellbuf gains Color.RGB (docs/animation.md).
New experimental package window: a desktop of overlapping windows the user moves by the title bar, resizes by the edges, raises with a press and closes with the close box, with the same actions on the keyboard (alt+arrows, alt+shift+arrows, alt+[ and alt+], alt+m, alt+w).
Text selection across widgets: WithTextSelection(style) lets the user select screen text with Alt+drag (double click a word, triple click a row), copies it with OSC 52 and delivers a SelectionMsg (docs/input.md).
Vi mode for textarea and textinput: set Vi and the widget is modal (counts, motions, d c y with motions and text objects, p, ., u, Visual mode), with ViMode, SetViMode and ViPending; a change undoes as one step (docs/input.md).
- Four examples for the new widgets: docsreader (markdownview with a contents panel), logbrowser (filter input with history over a viewport), splitedit (splitpane with a highlighted textarea and outline) and inventory (datatable Source, Columns and marks with a detail pane).
- Guides for animation, background work, forms, tables and the development tools
(
docs/animation.md,background-work.md,forms.md,tables.md,devtools.md), and themotionpackage comment now says it has 31 easings. - Development tools in the
tuicommand:tui keys(what the terminal sends, live: keys with their decoded type, modifiers and action, mouse events with click counts, paste and focus),tui log [-f] [-n lines] [-grep text] file(read and follow the filetui.LogToFilewrites), and previews oftui colors [preset](swatches and contrast),tui bordersandtui easings [name]. prompt.Choose[T]withprompt.Choice[T](a label, a value of any type, an optional group shown as “Group > Label”), and twoprompt.Configfields forSelectandChoose:Start, the choice the cursor begins on, andPageSize, how many entries show at once.datepicker.Model.LabelsandTitle: weekday and month names, the first day of the week, the way a date is spoken and the phrases ofLinearize, all replaceable, so the picker can be shown in another language or start its week on Monday. The zero value is the English picker it was.- A theme file (
theme.Parse,tui theme check) can now also setglyphs(unicode,ascii,nerd),spacing, the interactivestatesand thetypographystyles, and the colours of one kind of widget undercomponents;borderalso takesdouble,thickandhidden. layout.Wrap(colGap, rowGap, children...): children flow left to right at their natural width and start a new row when the next does not fit: chips, tags and toolbars that should wrap, whichRowcannot.virtuallist.Model.HeightOf: items of different heights in a virtual list.Heightthen counts rows, every item is drawn exactly its rows (padded or cut), the last may be cut off by the window, scrolling and the cursor keep an item whole, andHeightOfis asked only for the items near the window.treeview.FromValueandValueNode: show any Go value as a tree: struct fields, sorted map entries, slice elements, pointers followed with cycles marked,time.Timeand values with anErrororStringmethod by their text;ValueOptionsbounds the depth and the items per collection. Text from the value is cleaned of escapes.markdownview(experimental): a Markdown document you read in a window. It scrolls, lists its headings (Headings, for a table of contents) and links, moves through the links with Tab, follows in-page links (#section) with a Back and Forward history, jumps by heading with]and[, and reports other links with aLinkMsg.viewportgainsYOffsetandSetYOffset.imageviewtakes more than PNG and works without a graphics protocol:Newaccepts a JPEG or GIF (its first frame) and keeps its PNG form;FromImage,EncodePNGandToPNGconvert;Framesdecodes an animated GIF into whole-picture frames with their delays; and where the terminal has no graphics protocol the image is drawn in half blocks, two pixels to a cell (HalfBlocks), unlessPlaceholderOnlyis set or the theme’s glyph set is ASCII.- Two experimental packages:
rangeslider(two thumbs on one track, Space or[and]to pick one, the low never passing the high, mouse drag) andtimepicker(hours, minutes, optional seconds and AM or PM as fields; arrows, typed digits, wheel).theme.ComponentRangeSliderandComponentTimePickername them for theme tokens. textinputhistory and suggestions:Model.Historywith Up and Down (and Ctrl+R to search it), andModel.SuggestionorSuggestFromHistoryfor grey text after the cursor that Right, End or Ctrl+E takes (KeyMap.HistoryPrev,HistoryNext,HistorySearch,AcceptSuggestion). With no history and no suggestion nothing changes.- Double and triple click: the Program counts presses of the same button on the same
cell within 400 ms into
MouseEvent.Clicks(WithMultiClicksets or turns off the interval). Intextinputa double click selects the word and a triple click the line; intextareaa double click selects the word and a triple click the line. datatablemulti-row marking: withModel.Multion, Space marks the row under the cursor and Ctrl+A marks all (KeyMap.Mark,MarkAll); a marked row shows a check in the gutter.Marked,IsMarked,MarkandClearMarksread and set the marks, which belong to source rows and stay with their rows through sort, filter and row edits.datatable.ColumnandModel.Columns: per-column alignment (numbers flush right), minimum and maximum width (a cell wider than the maximum ends in an ellipsis), aFormatthat changes what is shown and not the cell, and aLessfor the sort key. View, the layout node,LinearizeandDrawCellsfollow them.prompt.Progressandprompt.Track: a bar with the elapsed time, rate and time left (fromwidgets.ProgressStats) while a function or a loop runs, with Ctrl+C cancelling its context; the counterpart ofprompt.Spinfor work with a known size.layout.Anchor(corner, dx, dy, node): pin aStackchild to a corner or the middle of the Stack, following its size (a badge top right, a status bottom left); andlayout.Aspect(w, h, node), which sizes a node to a ratio in cells.tui.SetPointerShapeandViewState.Pointer: change the mouse pointer’s shape (OSC 22: a hand over a button, an I-beam over a text field) on terminals that support it; the default is put back on every exit path.layout.Box.Shadow(colour)andShadowGlyph(glyph, colour): a drop shadow, one column down the right side and one row along the bottom, which adds that much to the box’s size.autocomplete.SourceandModel.Source: suggestions found for the typed text, run ontui.Tasksso newer text cancels the older run, like the command palette’s;autocomplete.PathSource()completes file system paths.- Four Program options:
WithEnvironment(the program’s ownTERM,COLORTERM,NO_COLOR,ACCESSIBLEand reduced-motion variables, read through the newProgram.Getenvandmotion.DetectEnv, so a host serving several sessions can give each its own),WithFilter(sees every message on its way to the model,QuitMsgincluded, and may replace or drop it),WithoutRenderer(the event loop with no frames) andWithWindowSize(the starting size when the terminal reports none). - Text overflow and justification:
ansi.TruncateStartandTruncateMiddlekeep the end, or both ends, of a line that is too wide;ansi.Justifywidens the gaps between words;layout.WithOverflow(OverflowStart|OverflowMiddle|OverflowEnd, glyph)andlayout.WithJustify()use them in aTextnode. - Seven more border presets in
layout(BlockBorder,OuterHalfBlockBorder,InnerHalfBlockBorder,DashedBorder,HeavyDashedBorder,MarkdownBorder,HiddenBorder, the last taking a border’s space and drawing none of it), andBox.BorderColors(top, right, bottom, left)to colour the sides separately. - The rest of the standard easing set in
motion: Quart, Quint, Sine, Expo, Circ, Back, Elastic and Bounce, each in, out and in-out (31 in all, with the first eight), andmotion.ByNameandEaseNamesso a config file can name one. ansi.RGBcolour math:HSLandFromHSL,Complement,Luminance(WCAG relative luminance) andReadable(black or white, whichever reads better on the colour).- Three more form fields:
form.FieldConfirm(a Yes/No choice answered with Y and N;Boolreads it),form.FieldNote(a read-only line between fields, no focus, no value) andform.FieldFile(a path with a file list thatKeyMap.Browse, Ctrl+O, opens), plus theform.FileExistsvalidator. layout.Span(node, cols, rows): a grid cell that covers several columns or rows, so a dashboard with one wide panel over two narrow ones is oneGridNode. Cells still fill row by row, skipping what a span covers; a span wider than the auto-sized columns it covers widens them. Rendering,DrawCells,RectsandNamedAtall follow it.- Screenshots of a running program:
tui.WithScreenshot(key, save)handssaveatui.Screenshot(the rows as plainText, asANSI, and the size) when the key is pressed, andtui.ScreenshotCmd(wrap)delivers one toUpdate.tuitest.SVGOf(shot.ANSI, w, h, opts)draws it as an SVG image. - Markdown coverage: task lists (
- [ ],- [x]), reference links ([text][label],[text][],[label]with[label]: url), character references (&,—; ones that decode to a control character stay as typed) and lists nested up to six levels instead of two. Reference links are resolved inRender,RenderWithandModel, not in aStream. - Text area editing:
textarea.Model.Highlightercolours the text from a function of one line (View, DrawCells, soft wrap, scrolling and the selection all follow it);AutoIndentcopies the leading whitespace to a new line;Find,FindNext,FindPrevselect matches ignoring case andReplaceAllreplaces them in one undo step. appshell.Stack: a screen stack. A screen pushes another over itself withPushCmdand the pushed one pops itself withPopCmd(result), which delivers the result to the screens below;Replace,ViewAtandDepthcomplete it. Keys and mouse go to the top screen, everything else to all of them.commandpalette.SourceandModel.Sources: commands found for what was typed, not from a fixed list. Each keystroke runs every Source ontui.Tasks, so a newer query cancels the older one, and the answers join the dropdown when thetui.TaskDoneMsgcomes back throughUpdate.Model.Tasksis optional andModel.Namekeeps two palettes apart.- Lazy trees:
treeview.Node.Loadmakes a node a branch whose children are fetched the first time it opens (Updatereturns a Cmd that runs it, and theLoadedMsgit delivers goes back throughUpdate);treeview.LazyDirectoryTreelists one directory at a time.Model.Notifymakes opening and closing a branch deliverExpandedMsgandCollapsedMsg;Model.Namekeeps two lazy trees’ messages apart. datatable.Sourceanddatatable.NewSource: a table over rows read on demand (Rows() int,Row(i) []string), so a database cursor or a million-row log loads only the rows in view. Sort, filter and editing are off for it;SetSourceswaps the source andSetRowsgoes back to in-memory rows.- Key bindings from a file:
keymap.Parsereads{"action": ["key", ...]}JSON (every key name is checked, withkeymap.ValidKey), andkeymap.Applyswaps those keys into a list of bindings by their description, returning the names that matched nothing.tui keys check <file.json>lints such a file. widgets.ProgressStatsandwidgets.ProgressBarStats: elapsed time, rate (over the last ten seconds) and ETA for a progress bar, from the counts the caller feeds in withUpdate. It takes the time as an argument and never reads the clock.ProgressBarStatsdraws the bar with the stats line under it.tuitest.Session.Find,ClickTextandCursorOn: a test finds text on the screen and clicks it or checks the cursor is on it, without knowing the column and row the layout drew it at.- Styled text as data in three overlays:
dialog.Model.MessageText,notificationcenter.Notification.Textandhovercard.Model.ContentTexttake anansi.Text. When set it is shown instead of the string field, wrapped atWidthwith each span keeping its style (a notification’s unstyled spans take the variant’s colour), andLinearizeandLayoutNodefollow it. The string fields work as before.ansi.TextgainsWrapStringandWithDefault. ansi.Spanandansi.Text: styled text as data. ATextis a list of spans that can be measured (Width,Height), cut (Slice,Truncate), wrapped at spaces (Wrap, which cuts a word wider than the line) and rendered (String), with each piece keeping its style and nothing parsed back out of an escape sequence. Text is sanitised when built, so a span cannot carry control codes.cellbuf.Buffer.SetTextwrites one straight into the cell grid, andlayout.RichText(t, wrap)lays it out as aNode.layout.Box.BorderGradient(from, to): the border blends cell by cell around the box, from one colour at the top-left corner to another half way round and back, so the loop has no seam. It changes no dimensions and takes precedence overBorderColor.hexview(experimental): bytes as a hex dump with an offset column, hex in groups, an ASCII gutter, a cursor, a selection copied as hex (vtheny), scrolling withHeight, and mouse click, drag and wheel withMouseon.- Seven more components in the Widget gallery, 48 in all: hex view, tooltip, hover card, popover, menu bar, notification center and file picker.
Changed
Section titled “Changed”- BREAKING:
avatar.Model.Shapereturns aSilhouette(use.String()for the name);Model.Hueis a*float64, nil lets the name choose and a hue of 0 is a real pin;Model.Pins, theTraittype, itsStringmethod and its constants (TraitBodyProportion,TraitBodySize,TraitBodySquareness,TraitCornerRounding,TraitEyeLean,TraitEyeRoundness,TraitEyeSeparation,TraitEyeSize,TraitEyeSquareness,TraitGazeX,TraitGazeY,TraitLobes,TraitNubAngle,TraitNubSize,TraitNubs,TraitPetalDistance,TraitPetalRotation,TraitPetalSize,TraitPetals,TraitSquat,TraitTilt,TraitTipLength) are removed (useHue,Tone,Silhouette,AccessoryandEyes);MaxPNGSizeis 256, not 512.avatarwas experimental.
Changed
Section titled “Changed”- The data table’s
LayoutNodehonoursFrozenCols: when the columns do not fit the allotted width it scrolls them, keeping the frozen ones, asViewdoes. Before, it shrank every column with an ellipsis. A table withFrozenColsof 0 is drawn as before. chart.LineChartdraws on achart.Canvas, asPlotdoes. Its output is the same: the chart tests and every example pass unchanged.
[1.0.0-rc.1] - 2026-10-17
Section titled “[1.0.0-rc.1] - 2026-10-17”Release candidate for v1.0.0, condition 7 of docs/v1.md. It has no breaking
change since 0.2.0; everything in it is added, opt-in or internal. It holds a
fuzzy filter, form groups and typed values, data table filter, sort, cell mode and
editing, text-area line numbers, MaxHeight and LineInfo, a multi-series plot
and a public canvas, a colour toolkit, background tasks by key, Map, opt-in
colour-scheme and in-band resize reports, themes from JSON and four light
themes, tui prompt for shell scripts, a key-hint footer, a static tree, a
calendar and two more charts, a session screenshot as SVG and a gallery of 41
components, and text selection in the viewport. A breaking change found in the
week it is out would be a reason to cut an rc.2.
Changed
Section titled “Changed”- Documented which renderer is the renderer: the cell renderer (a tenth of the
bytes for a changing frame, 202 against 2,004 on an 80x24 view, for about a
quarter more CPU).
WithCellRenderer(false)stays, for comparing and debugging, since the line renderer is also the cell renderer’s fallback. A test keeps the byte figure from regressing. - The cell renderer reads a drawn frame 40% faster: a text-area keystroke through
DrawCellscosts 64 µs instead of 107 µs.internal/renderremembers the style of the cell before and takes a printable ASCII cell without scanning it; the cost was a map lookup and a rune slice for every one of the 1,920 cells of an 80x24 frame. The profile had pointed at thewritesystem call, which was the sampler’s attribution, not the cost: with a no-op writer the time was the same. internal/celldraw.StyleIDremembers each style’s conversion (up to 512), so everyDrawCellswidget stops rendering and parsing a probe string per style per frame.
examples/asyncloadnow runs its fetch withTasksand has anrkey that reloads, cancelling the load still in flight.widgets.CalendarandLinearizeCalendar: a month as a 20-column grid with a title, a chosen first weekday, today in the theme’s selected style and days styled by day of the month, for printed output (datepickeris the interactive one).chart.BreakdownBarandchart.Histogram, each with aLinearize...: a stacked one-row bar with a legend (segments differ by colour and by shade), and a count of values into equal-width bins drawn as bars.- Community files:
SECURITY.md(private reports through GitHub) andCODE_OF_CONDUCT.md. Tasks,NewTasksandTaskDoneMsg: background work by key.Tasks.Startcancels the earlier run of the same key, so a search-as-you-type needs no hand-written stale-result check;Cancel,CancelAllandRunning.WithColorSchemeReports(DECSET 2031) andColorSchemeEvent: a terminal that switches between dark and light while the program runs is followed. WithWithTheme(theme.Auto{...})the Program swaps the theme itself.WithInBandResize(DECSET 2048) andInBandResizeEvent: the terminal reports its size through the input stream, so a resize is seen where no window-size signal arrives (over SSH, in some multiplexers). Both options are off by default, so no output changes unless asked for.theme.Parse,theme.Presetandtheme.PresetNames: a theme from JSON, built on a named preset, andtui theme check file.json/tui theme listto lint one from the command line.tui prompt input|password|confirm|select|multiselect|spin: thepromptpackage from a shell script. The question is drawn on standard error, the answer printed on standard output;confirmanswers with its exit code.widgets.TreeandTreeWith: a static tree with connector lines, for printed output (the interactive one istreeview).layout.Ratio(n, d): a flex child sized to an exact fraction of the space after gaps (Pct(33)is not a third); combine it withMinandMax.- Data table:
SetCell,InsertRowandRemoveRowedit the source rows on a copy and keep a sort or filter in force. - Text area:
MaxHeight(grows with its content up to a cap),LineInfo(the cursor’s line, column and wrapped row) andLineLabel(your own text in the left column in place of the line number). widgets.ErrorTraceandErrorTraceWith: a wrapped or joined error as a tree of what each layer added and its Go type, sanitised.widgets.HintsFromBindingsandwidgets.Footer: a one-line key-hint bar built from a focused widget’sBindings(), cut to the width with a “…” when it does not fit.MapandMapAs[T]: wrap the messages of a child’s Cmd, throughBatch,Sequence,FromCtx,TickandEvery, so a parent tags or converts them without a hand-written envelope Cmd.- Four light themes:
CatppuccinLatteTheme,OneLightTheme,RosePineDawnThemeandGitHubLightTheme. Text and Muted pass AA; the accents keep each palette’s published values and some are paler than 4.5:1 (Theme.Checklists them). tuitest.Session.SVGandtuitest.SVGOptions: the screen as a standalone SVG image, with colours, attributes, an optional title bar and cursor, andTrimRowsto cut the blank rows below what was drawn.- A Widget gallery page on the site: one picture of each of 41 components (31 at
first; a dialog, toast, context menu, command palette, stopwatch, viewport, log
view, form, drawer and help screen were added), each drawn by a small real
program and checked against a golden file in
internal/tools/widgetshots. DrawCellsontextinput: a 60-column field draws in 3.1 µs and 1 allocation against 9.3 µs and 93 throughViewand parse.passwordinput,maskedinputandinputgroupdefine their own, throughView, so a mask or a prefix is not bypassed (a test checkspasswordinputnever draws its secret).- Viewport text selection: with
Mouseon, press and drag across the content,y(theCopykey) copies the selection throughtui.WriteClipboard;SelectedText,SelectAllandClearSelection. It follows soft wrap, scrolls when dragged past the top or bottom, is drawn inSelectionStyle(reverse video by default) over any search highlight, andDrawCellsdraws the same cells. SetBoundsto where the viewport is drawn. datatable.Model.CellMode,CellStyle,FrozenColsandSelectedMsg.Col: a cursor that is one cell (Left and Right move it, only that cell is highlighted, Enter reports its column), a hook that styles any cell from its row, column and value, and leading columns that stay in view while the rest scroll sideways. All are off by default.DrawCellsdraws a table that uses them throughView.chart.Canvas,NewCanvas: a public grid of braille dots (2 x 4 per cell) withSet,Line,Rect,Circle,Clear,RowsandString, in any colour per shape.Plotnow draws on one.chart.Series.KindwithLine(the zero value),ScatterandBars: a series drawn as joined lines, lone points, or columns that rise from the bottom of the plot or from zero.form.FieldMultiSelectandform.FieldTextArea,form.Selected,Field.Description,Field.HeightandKeyMap.SubmitInArea: a list with any number of options ticked (value: the ticked options joined by “,”), a multi-line text box (Enter adds a line; Ctrl+S submits from inside it), and a line of help under any field. Both draw as several rows, and the mouse, layout node and accessible output follow them.tui.ViewStateandtui.ViewStater: an optionalViewState()method besideView() stringthat states the alternate screen, the mouse mode and the window title for the frame, asEnableMouse,EnterAltScreen,ExitAltScreenandSetWindowTitledo fromUpdate. A nil field has no opinion; a set one is applied before the frame when it differs from the terminal’s state. The Cmds stay.DrawCellsonpicker,multiselect,treeview,spinner,tabs,menuandfilepicker: each draws its rows straight into the cell grid, asviewport,datatableandtextareaalready did, instead of building a string for the frame to parse. A 24-row list costs 47 µs and 131 allocations throughDrawCellsagainst 172 µs and 1,100 throughViewand parse. A test per package checks the cells againstView’s.Viewis unchanged.- Tests that lift ten library packages (
passwordinput,maskedinput,taginput,numberinput,spinner,wizard,loadingbar,motion,keymap,layout,emailinput,commandpalette,toast,helpscreen) past 90% on their own tests, and a note inCONTRIBUTING.mdon whygo test -coverand the CI floor differ. docs/tutorial-2.mdandexamples/tutorial2: a second tutorial that turns the task list into a searchable one withpicker.Filter, with a test.- Seven cookbook recipes: a one-line prompt, a filtering list, a form in steps,
a sorted and filtered table, line numbers in a text area, and a multi-series
chart; and examples
datatable.ExampleModel_filterandtextarea.ExampleModel_ShowLineNumbersbehind them. prompt, an experimental package that asks one question and returns the answer without aModelof your own:Input,Password,Confirm,Select(typing narrows),MultiSelectandSpin. They run an inline program, returnErrCanceledon Esc or Ctrl+C, and take an optionalprompt.Config(Default,Placeholder,Validate,NoFilter,Program).chart.Plot,chart.Series,chart.PlotOptionsandchart.LinearizePlot: several series drawn as braille lines on a shared y axis with labelled ticks, an x axis with optional labels and a legend. A fixedMinandMaxor the data’s range; NaN and infinite values leave a gap; ASCII glyph sets draw with+,-and|.textarea.Model.ShowLineNumbersandLineNumberStyle: a right-aligned line-number column left of the text, blank on soft-wrapped continuation rows. The column is extra width, soWidthstill counts the text only; the cursor cell, mouse clicks,DrawCellsandLayoutNodeaccount for it. Off by default.textarea.Model.Line,Column,LineCount,SetCursorPositionandInsertString: where the cursor is as a line and column, move it there, and insert text at it as one undo step.datatable.Model.Filter: “/” opens a filter line that keeps the rows whose cells fuzzy-match the typed text; Enter closes the line and keeps the filter, Esc clears it.Query,SetQueryandFilteringread and set it. Off by default.datatable.Model.SortByandClearSort, andKeyMap.ClearSort(“S”): sort from code, and put the rows back in the order they were given.SourceRowandSelectedMsg.SourceRowmap a shown row to the row given toNew.form.SelectOf,form.Optionandform.Value: a select whose options carry a value of any type, read back withValue[T];form.Boolandform.Intread a checkbox and a number field. The string values inValuesandSubmittedMsgare unchanged.form.Field.OptionsFunc: a select’s options computed from the other fields’ values, asked after every change; the chosen option stays while still offered.form.NewGroups,form.Groupand theform.KeyMapfieldsNextGroupandPrevGroup: a form of titled groups, one showing at a time under its title and “step n of N”. Enter checks the group and moves on, the last group’s Enter submits every field, Tab stays inside the group, andGroup.Hidedrops a group (and its values) while the values entered say it does not apply.Model.CurrentGroupandModel.GroupCountreport where it is.form.Newis unchanged and shows no header.fuzzy, an experimental package that matches a typed query against text (Score,Find) and marks the matched runes (Highlight). It ignores case, prefers consecutive runes and word starts, and ranks best first.picker.Model.Filter: type to narrow the list to the fuzzy matches, best first, matched runes underlined; Backspace edits and Esc clears the query.QueryandSetQueryread and set it. Off by default, so existing lists do not change.fuzzy.Splitcuts a text into matched and unmatched runs.multiselect.Model.Filterandtreeview.Model.Filter, the same type-to-narrow filter aspicker. Inmultiselectchecked items stay checked while hidden. Intreeviewa match shows with its ancestors, opened for the query without changing the expand state, and the tree keeps its order.autocomplete.Model.Fuzzy: suggest every suggestion the text fuzzy-matches, best first, instead of only those it is a prefix of. Off by default.ansi.RGB.Mix,LightenandDarken, andansi.Blend: move a colour toward another, white or black by a fraction, and spread n colours along a list of stops. A translucent colour is aMixwith the background it sits on.
Changed
Section titled “Changed”datatable.Model.SetRowsapplies the sort and filter that are active to the new rows; before, a sorted table showed its sort arrow over rows in the given order.commandpalettelists matching commands best first instead of in the order given, usingfuzzy. The set of commands that match is unchanged.
[0.2.0] - 2026-10-15
Section titled “[0.2.0] - 2026-10-15”The last v0 release before v1.0: every identifier deprecated in 0.1.0 is
removed, so no exported identifier carries Deprecated:. Each removal is a
- BREAKING: entry under Removed, with its replacement; docs/migrating-to-v1.md
has one section per identifier.
- Three small complete programs as examples, each with tests:
examples/jsonview(search a JSON document as a tree),examples/diskuse(what takes the space in a directory) andexamples/newproject(a project skeleton from five prompts).docs/built-with.mdlists programs built with tui, and.githubhas issue and pull-request templates and a link to Discussions. tui.SetProgress,ProgressStateandViewState.Progress: the terminal’s progress indicator (OSC 9;4), as a bar at a percent, an error or paused bar, a busy indicator, or none. The Program removes it on every exit path.cmd/tui:go run github.com/ows4444/tui/cmd/tui new myappwrites a new program (go.mod,main.go, atuitesttest, a README) that builds and passes its own test;-modulesets the module path. It adds no dependency version:go mod tidyresolves the latest.docs/tutorial.mdandexamples/tutorial: a first tutorial from an empty directory to a small task list with a text field, and a test of it withtuitest. The program and its test also compile against v0.1.0.button, a new experimental package: a pressable button with five variants and three sizes. Enter or Space presses it when focused; withMouseon, so does a left click that goes down and comes up inside it. It deliversbutton.PressedMsgcarrying the button’sID. Its states (focused, held down, hovered, disabled, loading) are told apart without colour. Focus is shown by angle brackets,< Save >, as in every control of this family:buttongroup,radiogroup,checkbox,toggle,sliderandrating.theme.ComponentButtonnames it for token overrides. WithToggleset it is a toggle button: a press turns it on or off, a dot before the label marks it on, andPressedMsg.Oncarries its state.buttongroup, a new experimental package: a row of buttons that take one place in the focus order. Left, Right, Home and End move its cursor, skipping disabled buttons and wrapping.ModeActionsis a set of plain buttons;ModeSingleandModeMultipleare toggle buttons of which one or several are on, read withOnand reported withChangedMsg.Requiredkeeps a single choice from being left empty.radiogroup, a new experimental package: a set of options of which exactly one is chosen. The arrow keys move between the options and choose as they go; Space or Enter chooses the one under the cursor. Vertical or on one row, with disabled options skipped. It deliversradiogroup.ChangedMsg.slider, a new experimental package: a value in a range, moved along a track by the arrow keys, Page Up and Page Down, Home and End, and by a press or a drag with the pointer.Steprounds the value andMaxstays reachable. It deliversslider.ChangedMsg.rating, a new experimental package: a score out of a small maximum, as a row of filled and empty marks. Left and Right, a digit, or a click set it; a click on the mark it is at clears it. It deliversrating.ChangedMsg.theme.ComponentRadioGroup,ComponentSliderandComponentRatingname the three for token overrides.checkbox, a new experimental package: one box with a label that Space or a click checks and unchecks, with anIndeterminatestate drawn[-]. It deliverscheckbox.ChangedMsg.widgets.Checkboxstill draws one without state.toggle, a new experimental package: an on/off switch with a label. Space or Enter flips it, Left turns it off and Right turns it on. It deliverstoggle.ChangedMsg.widgets.Togglestill draws one without state.theme.ComponentCheckboxandComponentTogglename the two for token overrides.otpinput, a new experimental package: a short code typed one character to a cell, such as a one-time password. A typed character fills a cell and moves on, Backspace steps back, and a paste fills as many cells as it has characters.Groupdraws a dash between groups of cells,Acceptchooses the characters,Maskhides them. It deliversotpinput.ChangedMsgwithComplete.theme.ComponentOTPInputnames it for token overrides.inputgroup, a new experimental package: atextinput.Modelwith fixed text before and after it. The suffix keeps its column when aWidthis set,CursorCellis reported past the prefix, andFullValuejoins the three.pagination, a new experimental package: a row of page numbers with the current one in brackets and far pages folded into an ellipsis. Left, Right, Home, End or a click on a number change the page. It deliverspagination.ChangedMsg.widgets.Paginationstill draws “Page X of Y”.breadcrumb, a new experimental package: a trail of places with a cursor moved by Left and Right; Enter, Space or a click chooses a place and deliversbreadcrumb.ChosenMsg.Maxfolds a long trail around an ellipsis.widgets.Breadcrumbstill draws one without state.theme.ComponentPaginationandComponentBreadcrumbname the two for token overrides.transferlist, a new experimental package: two lists side by side. Up and Down move a cursor, Left and Right change list, and Enter, Space or a click moves an item across; Ctrl+A moves a whole list. It deliverstransferlist.ChangedMsg.carousel, a new experimental package: one slide of several at a time with a row of dots under it. Left, Right, Home, End or a click change the slide;Loopwraps at the ends. It deliverscarousel.ChangedMsg.theme.ComponentTransferListandComponentCarouselname the two for token overrides.tooltip, a new experimental overlay: a short hint drawn under itsTargetwhile the pointer is over it. It needstui.MouseAllMotion;ShowandHideserve keyboard focus.widgets.TooltipOverlaystill draws one without state.hovercard, a new experimental overlay: a titled card drawn under itsTarget, which stays open while the pointer is on the target or on the card. Esc or the pointer leaving closes it and delivershovercard.ClosedMsg.backdrop, a new experimental overlay:Renderreturns a frame dimmed, to put behind a dialog or a drawer. A press on it deliversbackdrop.PressedMsg.theme.ComponentTooltip,ComponentHoverCardandComponentBackdropname the three for token overrides.widgets.Emptydraws the placeholder for a view with nothing to show: a title, a description and a hint, centred.widgets.Timelinedraws[]widgets.TimelineItemone under another with a marker for each status and a rail between them.examples/gallery, seven pages that showotpinput,inputgroup,transferlist,carousel,widgets.Timeline,widgets.Empty, andtooltip,hovercardand a dialog over abackdrop, with abreadcrumband apaginationrow as its own navigation.examples/controls, an export panel that usesbutton,buttongroup,radiogroup,slider,rating,checkboxandtoggletogether, by keyboard and by mouse.tuitest.Session.WaitForText(text, timeout)waits until a row of the screen containstextand reports whether it did. It is for output that arrives on its own time, after a command or a tick, whichKeysandSenddo not wait for.
Changed
Section titled “Changed”-
The minimum Go version is 1.26, up from 1.25. tui supports the two newest Go releases, now 1.26 and 1.27, and CI tests on both.
-
layout.BoxNodemeasures aWidth, aHeightand a title set on its box. It asked only for the child’s size, so a box with aWidthor a title came out narrower thanBox.Renderdrew it, and one with aHeightlost its bottom border. Given the size it asks for,BoxNodenow draws whatBox.Renderdraws; a layout that allots less still wins. A box with any of the three set may take a different amount of room than before. -
commandpaletteis promoted from experimental to stable-ish, asdocs/v1.mddecided once its deprecatedInitwas removed. ACLine is the program outside this repository that uses it.
Removed
Section titled “Removed”- BREAKING:
autocomplete.Model.Initandcommandpalette.Model.Initare removed. UseFocus, which returns the same Cmd. They were the only two components with anInit; a component has none. - BREAKING:
layout.Box.Renderis removed from the exported API. Uselayout.BoxNode(box, layout.Block(content)), orBoxNodewith any Node child.BoxNodedraws whatRenderdrew. - BREAKING:
ansi.SetClusterWidthis removed. Grapheme-cluster width is on by default andTUI_NO_CLUSTERSset to a non-empty value turns it off for the process, read once when the first width is measured. For one terminal use anansi.Measurer:ansi.ClusterMeasurer(false)counts each rune on its own, andProgram.MeasurerandResizeMsg.Measurercarry the probed answer. - BREAKING:
textinput.Model.ClipboardWriteandtextarea.Model.ClipboardWriteare removed. Copy and Cut always returntui.WriteClipboard, and Paste returnstui.PasteCopied, so the Program writes the OSC 52 sequence to its output and holds the copied text. To direct that output elsewhere usetui.WithOutput. A Model no longer holds its own copy buffer: a second text field in the same Program pastes what the first copied. - BREAKING: the chart functions in
widgetsare removed:BarChart,Gauge,HeatMap,LineChart,Sparkline,SparklineWithand theBarItemalias. Use the functions of the same names inwidgets/chart.
clockview: a Model ignores another Model’s ticks. Two of them in one program each took the other’s tick for their own, so a stopwatch ran fast and the number of pending ticks doubled every interval.spinner,skeleton,loadingbarandfaces: a Model ignores another Model’s ticks, asclockviewnow does. Two spinners started separately in one program each took the other’s tick, so both ran fast and the number of pending ticks doubled every interval. Models that share amotion.Clockwere not affected.- The
asyncload,buildlog,chatandinlinespinnersexamples animate. Each started its spinner, or its typed-out reply, inside anInitwith a value receiver, so the model the Program kept was never running and the animation stayed on its first frame.Start’s doc comments now say where to call it. layout.BoxNodedraws its whole frame when the child has no room. Around an empty child it drew a blank row where the bottom border belongs, did not stretch to the width it was given, and, when only as wide as its frame, left the bottom border above the last row.layout.BoxNodemeasures the box’s margin. It left the margin out, so a box with one was drawn larger than it measured and lost its right and bottom borders to the clip. A box with a margin now takes that much more room in a layout.layout.BoxNodemeasures only the border sides the box draws. It counted two rows and two columns for any border, so a box with sides switched off byBorderSideswas padded out with blank rows and columns. Such a box now takes less room in a layout.- A terminal resize in a program’s first moments is no longer lost on Linux, macOS and the BSDs. The program began listening for the window-size signal on a goroutine of its own, and a resize that came before that goroutine ran found no listener, so the program stayed drawn at its old size until the next resize.
tuitest:Keys,Sendand the other input methods return only after the program has exited when the model quit in response. On a slow terminal they returned while it was still leaving the screen, soDonewas false straight after.numberinputandemailinputreject the space bar. Their filters looked only atKeyRuneskeys, and the space bar is aKeySpacekey, so a space went into a digits-only field and into an email address.tuitest.Session.Keyswaits until the model has received the keys it sent. It counted anyUpdate, so one caused by a tick or a command’s result while a key was still on its way was taken for the key, andKeyscould return before the model had seen it; on a loaded machine tests then read a stale screen.Paste,ResizeandSendwait for their own message in the same way.
[0.1.0] - 2026-10-08
Section titled “[0.1.0] - 2026-10-08”The first tagged release: everything written before a tag existed.
toolapproval: a prompt can show fewer options and name them itself.Model.Choiceslists which options are shown and in what order (empty shows all three),Model.Labelsreplaces an option’s text, andModel.Bodyis drawn between the header and the options, for the command and where it runs.KeyMap.Approve,KeyMap.DenyandKeyMap.Alwaysresolve the prompt at once with that option; they have no keys until a caller binds them. A prompt that sets none of these behaves as before.imageviewdraws through iTerm2’s inline-image protocol (OSC 1337) whenModel.Inlineis set: it sends the PNG as it is, and is preferred over Sixel.imageview.Inlinebuilds the sequence, andtui.Capabilities.InlineImagesreports a terminal known to draw it (iTerm2, WezTerm), inferred from its XTVERSION reply.faces.For(name)andfaces.IndexFor(name)pick a catalog face for any string, the same one every time, so a name can have a character of its own.faces.Model.Colordraws the face in a colour other than the theme’s primary, andfaces.ColorFor(name)derives one from a name.avatar: a new experimental package that draws a deterministic avatar for a name: one of ten silhouettes with two eyes, in a colour the name chose.Model.Viewdraws it in terminal cells andModel.SVGreturns it as markup. Names are NFC-normalised, trimmed and lowercased before hashing, so the spellings of a name a reader cannot tell apart are one avatar.Model.Blinkplays one blink, driven byModel.Update, andModel.LookAtturns the eyes toward a target such as the mouse pointer. A Model fromNewcaches itsViewuntil a field it depends on changes.Model.Expressionsets a pose the eyes hold: happy, sad, mad, surprised, wink, sleepy, thinking, smug, unsure, scared, love, shy or sick.Model.StartIdlekeeps the avatar breathing, blinking and glancing aside, at a rhythm drawn from its name, untilModel.StopIdle;Model.Hoverruns it only while the pointer is over the avatar.Model.Hue,Model.ToneandModel.Silhouettepin the colour or the shape, andModel.Pinsany single trait such as the size of the eyes or the number of a sun’s petals, while the name decides the rest.Model.PNGreturns the avatar as a PNG, forimageviewon a terminal that shows images, and the same slice until the avatar changes.Model.Reactpulls a face forReactHoldand lets it go, for a click; it eases in and out, as doesModel.SetExpression. Eased into, the mad, scared and sick poses tremble and the thinking pose rocks. A pose also lifts or sinks the body a little; in cells that shows only at large sizes.ExpressionMad,ExpressionLove,ExpressionShyandExpressionSicktint the body;Colorsreports the tinted colours.tui.WriteClipboard(text)copies text: the Program writes the OSC 52 sequence to its own output and keeps the text.tui.PasteCopied()delivers that text toUpdateas aPasteEvent.filepicker.Model.Errreports why the current directory could not be listed, andViewshows a line saying so. An unreadable directory used to look like an empty one.filepicker.Model.Reloadlists the directory again.ExtensionsandDirsOnlyset afterNewhad no effect on the starting directory; set them and callReload.
Changed
Section titled “Changed”- BREAKING:
textinput.Model.ClipboardWriteandtextarea.Model.ClipboardWriteno longer default toos.Stdoutwhen nil. With the field nil, Copy and Cut returntui.WriteClipboard, so the OSC 52 sequence goes to the Program’s output, and Paste returnstui.PasteCopied, so the pasted text arrives oneUpdatelater as aPasteEvent. A Model whoseUpdateis called outside a Program copies and pastes only if the caller runs the returned Cmd. - The text the paste key inserts is no longer shared by every text input in the process. It belongs to the Program, so two Programs in one process (two SSH sessions) cannot paste each other’s copies.
- Cancelling the context given to
WithContextnow endsRun: it restores the terminal and returns the context’s error. Before, onlyProgram.Contextwas cancelled andRunkept going untilQuit. Runreturns an error wrapping the write error when a write to the output fails. Before, write errors were ignored and the Program kept rendering.
Deprecated
Section titled “Deprecated”textinput.Model.ClipboardWriteandtextarea.Model.ClipboardWrite: usetui.WithOutputto direct the Program’s output. While set, the field still receives the OSC 52 sequence and Paste inserts only what that Model copied.- The chart functions in
widgets(BarChart,Gauge,HeatMap,LineChart,Sparkline,SparklineWithand theBarItemalias) moved towidgets/chart; thewidgetsversions forward to them. layout.Box.Render: uselayout.BoxNode(box, layout.Block(content)), orBoxNodewith any Node child.ansi.SetClusterWidth: use anansi.Measurerfor anything tied to one terminal. A Program no longer calls it.
Removed
Section titled “Removed”- BREAKING:
WithInputReader,WithOutputWriterandWithErrWriterare removed.WithInput,WithOutputandWithErrOutputtake any reader or writer: a non-file reader given toWithInputneeds no terminal and quits the Program at EOF, asWithInputReaderdid. - BREAKING:
WithLineRendereris removed.WithCellRenderer(false)selects the line renderer. - BREAKING:
layout.JoinHorizontal,JoinHorizontalAlign,JoinVertical,JoinVerticalAlign,FlexRow,FlexItem,GridFlex,GridandColSpecare removed. Use the Node constructors:JoinHorizontalandFlexRowbecomelayout.Row,JoinVerticalbecomeslayout.Column, the*Alignvariants setFlexChild.CrossAlignon each child,GridFlexandGridbecomelayout.GridNode,ColSpecbecomeslayout.Track, andFlexItembecomeslayout.FlexChild.
tuitest: a session larger than 80x24 drew clipped frames. The Program under test kept the 80x24 size of a plain writer whatever sizeNeworResizewas given, so only the model was told the new size. The session now gives the Program a terminal of its own size, andResizechanges that size too. A test that passes its owntui.WithTerminalkeeps control of the size.tuitest.Replaysays why it fails on a recording it cannot reproduce: one in which a tick or resize was handled between two keys that arrived in one input read. Before, the failure was only a frame diff.colorpickerpasses aPasteEventto its hex field while that field has focus. It forwarded only keys, so a paste never reached the field.Runwaits for its resize watcher before returning, so nothing asks theTerminalfor its size, or reads the output file’s descriptor, afterRunhas returned and the caller has closed the output.filepickertreats a symlink to a directory as a directory: Enter descends into it instead of selecting it as a file.Gobehaves asFromCtxdoes:Sequencewaits for aGoCmd before starting the next one, andRunCmdruns it and returns its Msg. Before,Sequencemoved on at once andRunCmdreturned an internal value.imageview: a Model fromNewencodes its image once and reuses the result until the image, size, mode, id or cell size changes. It used to decode and encode on everyView. Bytes ofPNGoverwritten in place are not noticed; assign a new slice.tuitest.Session.Keyssends every key nameKey.Stringproduces (function keys,insert, modified keys such asctrl+leftandctrl+shift+a, media keys) as that key. Before, names it did not know were typed one character at a time. An argument that is exactly a key name can no longer be typed as text withKeys.RuncancelsContextand releases callers blocked inSendwhen it returns before the loop starts (the input is not a terminal, or raw mode cannot be entered). ARuncalled while the first is still running no longer reads the running model; it returns the model given toNewProgram.SuspendMsg.Errreports a failure to re-enter raw mode after aSuspendwhose function succeeded. It was nil before, with the terminal left in its normal mode.- With
WithRecover(true), a panic in aTickorFromCtxCmd, aSequencestep or anEverycallback now makes Run return a*PanicError. Before, these restored the terminal and re-panicked.