Repository navigation
chore(deps): update dependency @opentui/core to v0.9.9 - #13
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/opentui-core-0.x
branch
from
November 24, 2026 06:10
0dd4a3e to
646ad4b
Compare
renovate
Bot
force-pushed
the
renovate/opentui-core-0.x
branch
from
November 24, 2026 06:11
646ad4b to
d1ad24d
Compare
moritzfl
approved these changes
Nov 24, 2026
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
0.5.10→0.9.9Release Notes
anomalyco/opentui (@opentui/core)
v0.9.9Compare Source
In earlier releases, a Rust app that changed its theme in an
App::on_theme_modehandler kept the old theme's selection colors on every widget it had already created. Widgets copiedTheme::selection_bgandTheme::selection_fgwhen they were created, soApp::set_themereached only widgets created after the call. In 0.9.9 the default selection colors live in the native Context, and each selection reads them when it draws. NowApp::set_themerecolors the selections of existing widgets too, including a selection that is on screen when you call it.This also changes what
Nonemeans in a widget'sselection_colors. Before, aNonecolor kept the text color, andSelectionColors::default()inverted the selected cells. Now aNonecolor takes the theme's color, one color at a time. A selection inverts its cells only when neither the widget nor the theme sets a background. If your app usedSelectionColors::default()to get inverted selections, those selections now draw in the theme's colors.C hosts set the same default with
ot_context_set_selection_colors. Core apps see no change:selectionBg,selectionFg, andsetSelectionColorswork as before. The renderer now gives their colors to the native Context.Added
ot_context_set_selection_colorssets the default selection background and foreground of a Context. A selection that has no color of its own uses the default, and a change also restyles current selections. See C. (#2198)Changed
App::set_themechanges the selection colors of all widgets, including current selections. A color thatselection_colorsleavesNonenow takes the theme's color, not the text color. See Widgets and layout. (#2198)Fixed
MarkdownRenderableno longer throwsundefined is not an object (evaluating 'c.ordinal=o++')while a list streams in. Lists now lay out after all blocks of an update are shown. OpenTUI 0.9.4 to 0.9.8 had this error. See Markdown. (#2199)API changes and documentation: https://opentui.com/docs/releases/0.9.9
What's Changed
Full Changelog: anomalyco/opentui@v0.9.8...v0.9.9
v0.9.8Compare Source
Without selection colors, a selection inverts its cells. On a cell with no opaque background, inverting forces the text to black. opencode keeps the renderer background transparent and paints its own background, so on a light theme every selection showed black text on a near-black background. Until now, the only fix was to set
selectionBgandselectionFgon every text renderable in the app. Now you can set them once, on the renderer:Each color falls back separately. A Textarea that sets only its own
selectionBgkeeps that background and uses the renderer'sselectionFg. TheselectionBgandselectionFggetters on a renderable still return only the values set on that renderable. An app that sets no renderer colors sees no change. ASCIIFont does not use the renderer colors, and the Rust crates do not have renderer selection colors yet.A box with
width: 10, a border, andpadding: 1has 6 columns for its content. The default,"border-box", counts the border and padding as part of the width. WithboxSizing: "content-box", the width is the size of the content:This box is 14 columns by 7 rows, and its content is 10 by 3. Use it when the content needs an exact size and the frame around it can grow. The default is still
"border-box", which is not the CSS initial value, so existing layouts do not change. To restore the default, assignnullorundefined.@opentui/solidno longer installsbabel-plugin-module-resolver. Its own Solid transform now rewrites module specifiers with a small Babel plugin. The earlier Node instructions used the resolver to sendsolid-jsto its client runtime. To move to the new setup, remove the resolver from your Babel config and start Node with thebrowsercondition:If your Babel config still imports the resolver, add
babel-plugin-module-resolverto your own dependencies.@opentui/solidno longer installs it for you.Breaking changes
@opentui/solidno longer depends onbabel-plugin-module-resolver, sonpm audit --omit=devno longer reports GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249. List the resolver in your own dependencies if your Babel config imports it, or run Node with--conditions=browserinstead. See Solid bindings. (#2182)Added
createCliRenderer()acceptsselectionBgandselectionFg, andrenderer.setSelectionColors(bg, fg)changes them and repaints an active selection. Text, Code, Markdown, Diff, Textarea, Input, and TextTable use these colors when they have no selection color of their own. See Interaction, focus, and selection. (#2196)boxSizinglayout option accepts"content-box", which adds padding and borders to the size and its limits.getBoxSizing()returns the value, and React and Solid props also accept it. See Layout. (#2183)flexBasisaccepts a percentage, such as"50%". Before, Core discarded a percentage value without an error. See Layout. (#2183)Widgettrait hasbox_sizingandaspect_ratiolayout methods. See Widgets and layout. (#2183)Changed
syntax_themeon RustMarkdown,Code,Diff, andTextareaacceptsimpl Into<Arc<SyntaxTheme>>, so views that get clones of oneArcshare one theme. Passing aSyntaxThemestill compiles, and a newDiffview now makes 74 allocations instead of 607. See Code, Markdown, and highlighting. (#2190)Fixed
fg, the renderer resumes at the current terminal size, also in the RustHost. Before, a terminal that changed size during the suspend got a frame at the old size. See Renderer. (#2181)flexBasisor percentage padding now updates when its parent resizes, unless the parent takes its size from its content. Before, a 50% child of a row that grew from 20 to 30 cells stayed at 10 cells. See Layout. (#2192)ScrollBoxthat becomes sticky after layout now follows new rows only from the edge, as in Core. A program scroll on a box with zero rows no longer jumps to the last items when the content grows. See Widgets and layout. (#2185)API changes and documentation: https://opentui.com/docs/releases/0.9.8
What's Changed
Full Changelog: anomalyco/opentui@v0.9.7...v0.9.8
v0.9.7Compare Source
Fixed
defaultscope, such as in theopencodetheme, replaced the text color. See Code, Markdown, and highlighting. (#2180)API changes and documentation: https://opentui.com/docs/releases/0.9.7
What's Changed
Full Changelog: anomalyco/opentui@v0.9.6...v0.9.7
v0.9.6Compare Source
A Rust app on version 0.9.5 of the crates has this dependency in its
Cargo.toml:There is no 0.9.6 of that package. On crates.io, an unrelated project held the names
opentuiandopentui-sys, so 0.9.4 and 0.9.5 went out asanomalyco-opentuiandanomalyco-opentui-sys. OpenTUI now owns the real names. This release and later ones use them, and the interim names stop at 0.9.5. To upgrade, remove thepackagekey:Cargo commands change the same way.
cargo test -p anomalyco-opentuibecomescargo test -p opentui, and--features anomalyco-opentui/tokiobecomes--features opentui/tokio. The library was always namedopentui, so nouseline changes.opentui-sshalso kept its name. A Git dependency on tag v0.9.4 or v0.9.5 still needspackage = "anomalyco-opentui", because the crates at those tags have that name. As before, use the native archive from the same release as the crates, such asopentui-native-v0.9.6-linux-x64.zip. See Install, link, and ship.Breaking changes
opentuiandopentui-sysagain, andanomalyco-opentuiandanomalyco-opentui-sysstop at 0.9.5. Replaceopentui = { package = "anomalyco-opentui", ... }withopentui = "0.9.6", and useopentuiandopentui-syswithcargo -pand--features. See Install, link, and ship. (#2179)Fixed
$before a held pipe, as in$|$[, as plain text while the line waits to become a table header. Before, that$used the math style. See Markdown and Code, Markdown, and highlighting. (#2178)Markdownnow draws prose in its text color with the background and attributes of thedefaultscope, also in quotes, as Core does. Before, prose used the foreground of thedefaultscope and not its background. See Code, Markdown, and highlighting. (#2177)API changes and documentation: https://opentui.com/docs/releases/0.9.6
What's Changed
Full Changelog: anomalyco/opentui@v0.9.5...v0.9.6
v0.9.5Compare Source
With
concealon, Markdown draws the box of a task item as ☐ or ☑. Before this release, an app could not get ASCII boxes and still conceal the rest of the document. Core apps had to patch the item's Text renderables, and Rust apps could not change the box at all. Now both bindings let you set the box text:In Rust, call
task_markers("[ ]", "[x]")on aMarkdown. The box is part of the item's marker. With[ ], the wrapped text of an item therefore continues at column 6, under its first word. When you change the option, the items already on screen update, also while the document streams. Without conceal, the option has no effect, and items show the source's[ ]or[x].A Rust app that streams Markdown into the split-mode scrollback could already get the number of final top-level blocks from
committed_block_count. It could not find which rows those blocks use.block_rows()now returns oneRange<u32>for each top-level block in the latest frame. These are the same rows thatScrollbackSurface::commit_rowstakes. Blocks are one row apart. To commit blocksfrom..to, each with the gap above it, start atrows[from - 1].end, or atrows[0].startfor the first block, and end atrows[to - 1].end. Core apps read the same rows from theyandheightof each child inMarkdownRenderable.getChildren(). A shared test checks that Core and Rust put the blocks of a streamed document on the same rows.Starting with this release, the release workflow publishes the Rust crates to crates.io.
cargo add anomalyco-opentui --rename opentuinow gets the version of the newest release. Link the native archive from that same release. Prereleases are published too, but Cargo selects a prerelease only when you ask for one.Added
MarkdownOptions.taskMarkersandMarkdownRenderable.taskMarkersset the text of the unchecked and checked task boxes whenconcealis on. The defaults are ☐ and ☑. See Markdown. (#2173)Markdown::task_markers(unchecked, checked)sets the task boxes when conceal is on, as Core'staskMarkersdoes. See Code, Markdown, and highlighting. (#2173)Markdown::block_rowsreturns the rows of each top-level block in the latest frame, in the rows thatScrollbackSurface::commit_rowstakes. See Time, animation, and the split footer. (#2174)anomalyco-opentui-sys,anomalyco-opentui, andopentui-sshto crates.io at the release version. See Install, link, and ship. (#2170)API changes and documentation: https://opentui.com/docs/releases/0.9.5
What's Changed
Full Changelog: anomalyco/opentui@v0.9.4...v0.9.5
v0.9.4Compare Source
A Git dependency on the Rust crate must now name its package:
The crates are now ready for crates.io, but the names
opentuiandopentui-sysbelong to an unrelated project there. For now, the packages areanomalyco-opentuiandanomalyco-opentui-sys. The library names do not change, souse opentui::...lines stay the same now and after the crates get their real names. A path dependency needs the samepackageline.cargo -pand--featurestake the package names.opentui-sshkeeps its name. The crates require each other at the exact version, and they need Rust 1.88, not 1.85 as the documentation said. This release does not publish them to crates.io. You still install them with a Git dependency and the native archive from the same release, as Install, link, and ship describes.Core and Rust editors now handle control characters the same way. Text that an app sets keeps them. Call
setText("A\x07B")on a Core Textarea orset_text("A\x07B")on a RustTextarea, and the buffer keeps the BEL and shows it as^G. Before, Rust dropped it and stored"AB". Pasted text loses them. Both bindings first remove escape sequences, then every control character except tab, LF, and CR. Before, a Core paste kept NUL, BEL, form feed, DEL, and NEL and showed them as notation. A Rust paste left the body of a C1 control string in the text. Typed keys never carry control characters, and CoreonPastehandlers still get the raw bytes.Breaking changes
opentuiandopentui-sysare now namedanomalyco-opentuiandanomalyco-opentui-sys. Addpackage = "anomalyco-opentui"to a Git or path dependency, and use the new names withcargo -pand--features. See Install, link, and ship. (#2167)Added
input::decode_paste_bytesandinput::strip_ansi_sequenceswork like Core'sdecodePasteBytesandstripAnsiSequences. See Events, focus, and input. (#2160)Keymap::parse_bindingparses a key the same way that layer registration does, with comma lists and key aliases expanded. See Rust keymap. (#2160)Markdown::committed_block_countreturns the number of final top-level blocks, like Core'scommittedBlockCount, so an app can move streamed rows to scrollback. See Code, Markdown, and highlighting. (#2160)ImageView::fitted_sizeworks like Core'sgetFittedSize, andImageView::cell_aspectreturns the cell aspect ratio that native painting uses. See Images, video, sound, and terminals. (#2160)Color::parseaccepts#rgba, asRGBA.fromHexdoes, andContext::measure_edit_textworks like Core'smeasureEditText. See Widgets and layout. (#2160)Changed
TextareaandInputkeep control characters in text fromset_text,set_value, andinsert, as Core does, and show them as notation such as^G.Inputdrops only line breaks. See Widgets and layout. (#2163)Fixed
insertText,setText, andonPastehandlers do not change. See Textarea. (#2162)TextareaandInputpastes drop complete escape sequences, as Core does, and bracketed paste events drop a leading byte order mark. Before, a C1 control string left its body in the text. See Events, focus, and input. (#2160)API changes and documentation: https://opentui.com/docs/releases/0.9.4
What's Changed
Full Changelog: anomalyco/opentui@v0.9.3...v0.9.4
v0.9.3Compare Source
Fixed
strtodnow link without theLNK2005error forstrtold. The library keeps its bundled MinGW runtime copies private, and MinGW programs that callstrtoldstill work. See Rust. (#2157)API changes and documentation: https://opentui.com/docs/releases/0.9.3
What's Changed
Full Changelog: anomalyco/opentui@v0.9.2...v0.9.3
v0.9.2Compare Source
Fixed
opentui-sysbuild script names the release archive to extract, such asopentui-native-v0.9.2-linux-x64.zip, instead ofbun run build. SetOPENTUI_LIB_HINTto replace this advice with your own setup step. See Rust. (#2150)API changes and documentation: https://opentui.com/docs/releases/0.9.2
What's Changed
Full Changelog: anomalyco/opentui@v0.9.1...v0.9.2
v0.9.1Compare Source
createCliRenderer()returns before the terminal answers its startup queries, and an answer can change the width method. Up to 0.9.0, text created before that answer kept the startup guess. In tmux inside GNU Screen over ssh, a textarea put its cursor at cell 4 after👍🏽while the terminal drew the emoji in 2 cells, and selections and colors could land on other text.In 0.9.1, a renderer whose width method changes measures the text in its scene again: Text, Code, Input, Textarea,
TextTable, and Markdown tables. Cursors, selections, marks, colors, and undo points stay on their text. Applications that use these renderables need no changes.A
TextBufferorEditBufferthat you create yourself keeps its width method. Passtrueas the new third argument ofcreate()to make it follow the renderer that shows it. Only one renderer at a time can show such a buffer. For a buffer that you draw outside a scene, callsetWidthMethod()when the capabilities change:Breaking changes
reservedfield ofot_edit_buffer_optionsis nowflags. C code that names the field must rename it; code that zeroes the struct compiles unchanged. See C. (#2148)Added
TextBuffer.create()andEditBuffer.create()take an optionalfollowSessionWidthargument. A second renderer that shows a following buffer throws aNativeErrorwithNativeStatus.WrongSession. See Editing buffers and views. (#2148)TextBuffer.setWidthMethod()changes the width method of a buffer that you draw outside a scene, andTextBufferView.setSelectionColors()recolors the current selection without moving it. See Editing buffers and views. (#2148, #2149)OT_EDIT_BUFFER_FOLLOW_SESSION_WIDTHflag,ot_text_buffer_set_width_method, and theOT_SCENE_TEXT_SELECTION_COLORSoperation. See C. (#2148, #2149)link.execan linkopentui-static.libinto Windows MSVC executables, which also needntdll,user32,bcrypt, andlegacy_stdio_definitions. See C. (#2140)Changed
LICENSE-ZIG,LICENSE-LLVM,LICENSE-MINGW-W64,LICENSE-GDTOA, andLICENSE-YOGA. See C. (#2140)Fixed
TextTable, and Markdown tables created before the terminal replies now measure with the width method from the replies. See Text and terminal cells. (#2148, #2149)TMUXor aTERMthat starts withtmuxholds back the startup Kitty graphics query, which tmux showed as the pane title. See Terminal capabilities. (#2143)API changes and documentation: https://opentui.com/docs/releases/0.9.1
What's Changed
New Contributors
Full Changelog: anomalyco/opentui@v0.9.0...v0.9.1
v0.9.0Compare Source
In 0.9.0, Markdown runs on OpenTUI's native engine, the same engine the Rust widget uses. In 0.8.3,
MarkdownRenderableparsed withmarkedin JavaScript and lexed the open end of the document again on every chunk. In a growing list, the open end is the whole list, so streaming one list took 21,430 million instructions.MarkdownRenderablealso sent all prose to the Tree-sitter worker for styling. The native engine reads each chunk once and writes paragraphs and headings into their text nodes itself. Streaming the same list now takes 5.9 million instructions. Over one streamed answer, JavaScript's styled-text writes for prose went from 1,595 to 0, and the prose characters sent to the highlighter went from 56,223 to 0.Because the engine follows CommonMark 0.31.2 and GFM, some documents look different. While streaming, a line that can still change kind, such as a possible table row or a heading underline, waits for its end before it shows. A table appears when its delimiter row arrives, and task items show ☐ and ☑. The token tree is gone, so
renderNode(token, context)becomesrenderBlock(block, context), and you switch onblock.kindinstead oftoken.type:internalBlockModeis gone: every top-level block is its own renderable, one blank row apart. Code that read the parse state readsblocksandcommittedBlockCountinstead, and the React and Solid prop isrenderBlocktoo. The Markdown page has the full migration list.The new
inlineHookoption replaces the private chunk callback that apps had to override to show IDs as titled links. That callback missed the streaming preview and table cells, so on a typical answer 9 of 18 frames showed the raw ID. The hook gets the spans of every paragraph, heading, and table cell and returns the spans to show. A span with atargetin a paragraph or heading becomes clickable throughmarkdown.targetAt(x, y).inlineHookFilterruns the hook only on blocks that contain one of its strings, so other blocks stay on the native path:Input now has one stdin parser, the native one. 0.8 had two: the TypeScript parser was the default, and the native parser was opt-in through
experimental_nativeInput. They did not always return the same keys for the same bytes. The TypeScript parser gaveESC ,no key name, droppedCSI 1;2 Rinstead of reporting Shift+F3, and read an SGR button-32 report as a move instead of a drag. Removeexperimental_nativeInputandstdinParserMaxBufferBytesfrom your renderer config. To report a parser bug, attach anOTUI_STDIN_LOGcapture.parseKeypress()keeps its signature but decodes with the native parser, so under Node it needs--experimental-ffi. You can feel one change: once a terminal confirms the Kitty keyboard protocol, Escape arrives at once instead of after a 20 ms wait.The declarative composition layer is gone too:
h(),delegate(),vstyles, and the construct factories such asBox()andText(). Create renderables with their classes and add their children:Use the
ttemplate instead ofvstyles, for examplet`${bold("Done")}`, and therenderAfteroption instead ofGeneric().Renderable.add()now accepts only aRenderable, so narrow a nullable value before you add it.React and Solid now handle a removed prop the same way. They used to map JSX props to renderables in separate code, and the two disagreed. In Solid, a key removed from
stylekept its old value, sostyle={on ? { border: true } : {}}left the border on screen. React wrotenullfor a removed prop, andopacity = nullmeans 0, so removingopacityhid the box. Both reconcilers now callsetRenderablePropin Core and write a removed prop asundefined, which restores the default. If your custom setter checksvalue === nullto detect removal, make it acceptundefinedtoo.Two new edit buffer methods convert between JavaScript string indexes and cell offsets. Edit buffer offsets count display cells, but JavaScript indexes a string in UTF-16 units, and the two diverge at the first tab or wide character. In
ab\tcdwith the default tab width of 2,dis at string index 4 but at cell offset 5, so a plugin that passed the string index deletedc. Neither method moves the cursor:The new
layoutMode: "list"makes long columns cheaper to lay out. Before, a long column, such as a transcript, made Yoga run its flex pass over every row when one row changed. A list lays out its rows as a column and reuses the size of each row that did not change. Rows never grow or shrink; otherwise, a list lays out like a flex column withoverflow: "scroll". For ScrollBox content, setcontentOptions: { layoutMode: "list" }. In a 1,000-row select, a frame that appends one row costs 1.54 million instructions in list mode. Before list mode reused row sizes, the same frame cost 22.39 million.Breaking changes
MarkdownRenderableparses with the native engine, andmarkedis no longer a dependency.renderBlock(block, context)replacesrenderNode(token, context), also as a React and Solid prop.blocksandcommittedBlockCountreplaceinternalBlockModeand the parse state. Paragraphs and headings areTextRenderables, so code that setonChunksoronHighlighton them moves toinlineHook. The hook runs when the content or options change, also inside a setter, not when a highlight arrives. See Markdown. (#2079, #2023)MarkdownCodeBlockRenderergets aMarkdownCodeBlockinstead ofTokens.Code. Itsclosedfield tells whether the closing fence has arrived. See Markdown. (#2079)h(),VNode,delegate(),instantiate(),Generic(),VRenderable,vstyles, and the factoriesBox(),Text(),Input(),Select(),TabSelect(),ASCIIFont(),FrameBuffer(),Code(), andScrollBox(). Create renderables withnewandadd(), use thettemplate instead ofvstyles, and use therenderAfteroption instead ofGeneric(). See Renderables. (#2000)Renderable.add()andinsertBefore()accept only aRenderable, andTextRenderableaccepts only text children. Narrow a nullable orBaseRenderablevalue before you add it. See Renderables. (#2000)experimental_nativeInputandstdinParserMaxBufferBytesoptions, theOTUI_NATIVE_INPUT_PARSERandOTUI_NATIVE_INPUT_SHADOWvariables, andStdinParserwith its types are removed. Userenderer.keyInput,prependInputHandler, orsubscribeOscinstead. This fixes the F3 bugs that @FasterPHP reported. See Keyboard input. (#1981)MouseParserandnonAlphanumericKeysare removed.parseKeypress()decodes with the native parser, needs--experimental-ffiunder Node, and returnsnullfor empty input. Use renderable mouse events orcreateMockMouseinstead ofMouseParser, andterminalNamedSingleStrokeKeysinstead ofnonAlphanumericKeys. See Keyboard input. (#2016)stylekey through the newsetRenderablePropasundefined, notnull, so the setter restores its default. A custom setter that checksvalue === nullmust also acceptundefined. See React bindings. (#2018)InputRenderableOptionsno longer hasonSubmit, whichInputRenderablenever called. Listen for theenterevent instead. Contributed by @posva. See Input. (#1216)ExtmarksController.adjustExtmarksAfterDeletion()is removed; the edit buffer now moves extmarks itself. For a malformed range,create()returns 0 instead of throwing an error. Because the buffer owns its extmarks, a controller'sdestroy()leaves them in place; callclear()to drop them. See Editing buffers and views. (#2104)zIndexpaint in child order instead of the order they were added. A renderable inserted or moved before a sibling paints below it, and where they overlap, the later sibling gets the click. This also applies to a Solid<Show>before an overlapping sibling. To keep a renderable on top, give it a higherzIndex. See Renderables. (#2119)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.