How to build a good TUI in 2026, and on which framework (Textual, OpenTUI, Ratatui, Bubble Tea, Ink)
Which TUI framework to choose in November 2026, how well each is maintained, and which design principles separate good TUIs from bad ones.
For a TUI written in Python over one's own data, Textual fits best. The rule from the reviews is: a data tool in Python means Textual, TypeScript with a need for performance means OpenTUI, and a single binary means Go or Rust c17. Textual gives the most ready-made parts:
The risk is maintenance. Since Textualize closed, McGugan runs the project alone c2. The latest release is from 30 June 2026 c1, and the last commit, of 9 October, is only a note in the issue template c4. Our own measurement through the GitHub API on 19 November: the last change to the code was on 11 July 2026, and Toad, the author's flagship app, has stood still since 26 May 2026. The conclusion: the TUI layer should be thin, with the logic outside it, so that a move is cheap.
The other players in November 2026:
OpenTUI
The principles of a good TUI:
- two modes, that is a one-off printout and an interactive screen c19;
- an immediate picture from the cache and a refresh in the background c20;
- a key for every action, remappable, plus the mouse c21;
- a footer with about six shortcuts c23;
- layers of key handling, in which a modal window takes the input c25;
- drawing without flicker through synchronized output c18;
- respect for
NO_COLORc24; - tests of key sequences, because in a typical TUI project only 12% of the tests touch the interface c22.
What a screen for a quick glance should look like (added on 23 November 2026):
One screen, the most important thing in the top left corner.
- A dashboard gathers what has to be monitored on one screen c27. The top left corner is the most valuable place c30, and when everything is emphasised, nothing stands out c31.
- An amount alone says little without a comparison with something c28, and needless digits only slow the reader down c29.
- right alignment c32, a fixed number of decimal places in a column c33, a header aligned like its data c34. In Textual this is done by a Rich
Textwith justification in a DataTable cell c42, and large numbers are drawn by the Digits widget c43. - Codex writes ordinary text in the terminal's default colour c35 and keeps red and green for errors and success c36. First check whether the app works without colour, then in 16 ANSI colours c37, and under
NO_COLORfocus has to be carried by something other than colour c40. - Depth without borders comes from background layers c39, and panels do not change place, because the user navigates by memory of position c38. lazygit shows at once everything that is needed, without overwhelming c41. The sources of c37–c41 are practitioners' blogs (T4), not studies.
Claims
In our words
In the source's words
The latest release of Textual is from 30 June 2026.
[ The more super releaseLatest Jun 30, 2026 ](https://github.com/Textualize/textual/releases/tag/v8.2.8)
github.com · T1
Since the company Textualize closed, Textual lives on as an open source project that McGugan still maintains.
Textual will live on as an Open Source project. In the near term, nothing much will change. I will be maintaining Textual and Rich as I have always done.
Its creator considers Textual mature and battle-tested.
Software is never finished, but Textual is mature and battle-tested.
The last commit in Textual (9 October 2026) adds a maintainer's note to the bug report template.
Update bug report template with maintainer note
github.com · T1
Textual's command palette searches commands fuzzily.
which means Textual will show commands that match the keys you type in the same order
Textual's compositor refreshes only the changed region and allows smooth scrolling.
The compositor can also do partial updates. In other words, if you click a button and it changes color, the compositor can update just the region occupied by the button.
The same Textual app runs in the terminal and in the browser.
Textual apps are equally at home in the browser as they are the terminal.
github.com · T1
Textual has an official pytest plugin for snapshot tests of an app's look.
can help you catch otherwise difficult to detect visual changes in your app.
Textual tests simulate key presses through the Pilot object.
Both tests first construct an instance of the app and then call `run_test()` to get a Pilot object.
McGugan (the creator, so biased) claims that Textual is ahead of the TUI libraries in JS.
when it comes to TUIs, Textual is so far ahead of anything in JS
McGugan claims that Python is fast enough for a TUI.
it is more than fast enough for a TUI
Claude Code is built on Ink.
[Claude Code](https://github.com/anthropics/claude-code) - An agentic coding tool made by Anthropic.
github.com · T1
OpenTUI requires Bun 1.3.14+ or Node.js 26.4+ with experimental FFI.
runs on Bun 1.3.14 or later, or on Node.js 26.4.0 or later with ECMAScript modules (ESM) and `--experimental-ffi`.
npmjs.com · T1
OpenCode uses OpenTUI in production.
OpenCode uses OpenTUI in production for millions of users.
npmjs.com · T1
The codex-tui package (the Codex TUI, file codex-rs/tui/Cargo.toml) is a Rust crate.
[package] name = "codex-tui"
Bubble Tea v2 came out in February 2026 with a new renderer.
Bubble Tea shipped v2 in February 2026, its first breaking change, and the renderer was replaced with reportedly large performance gains.
ttlab.hopto.org · T4
The rule of choice: a data tool in Python means Textual, TypeScript with a need for performance means OpenTUI, a single binary means Go or Rust.
If distribution needs to be a single binary, go with Go or Rust (Bubble Tea, ratatui); if you already have a Node CLI, use Ink; for a Python data tool, use Textual
ttlab.hopto.org · T4
Synchronized output (DEC 2026) makes the terminal draw a frame atomically, without flicker.
Toggling DEC private mode 2026 on and off makes the terminal treat that span atomically.
ttlab.hopto.org · T4
Good tools have both modes: a one-off printout with an argument and an interactive screen without arguments.
In practice, a lot of well-built tools offer both modes side by side
ttlab.hopto.org · T4
ltui shows data from the cache in about 50 ms and refreshes it in the background.
On launch, it renders the last-seen board locally in roughly 50 milliseconds, then refreshes from the tracker in the background.
pantheon.run · T2
ltui: every action has a key and it can be remapped, but everything also works with the mouse.
Vim motions are available and every binding can be remapped.
pantheon.run · T2
A survey of 197 open source TUIs: only 12% of the test code checks the interface.
A 2026 survey of 197 open-source TUIs found that only 12% of their test code exercised the interface
pantheon.run · T2
A bar of shortcuts at the bottom: six keys are fine, sixteen are a problem.
Six keys is fine; sixteen is a problem.
june.kim · T4
The NO_COLOR variable is a convention: when it is set, turn colours off.
If the environment variable is set, drop all color.
june.kim · T4
Keys have to be separated into layers: a modal window takes the input before the screen beneath it.
A modal layer now claims input before the screen below it.
stele-ai.dev · T2
The codex-tui package declares a dependency on ratatui.
ratatui = { workspace = true, features = [
A dashboard is information gathered on one screen so that it can be monitored at a glance (Few).
consolidated and arranged on a single screen so the information can be monitored at a glance.
perceptualedge.com · T2
A number on a dashboard needs context (compared with what, good or bad, are we on track) (Few).
context means little. Compared to what? Is this good or bad? How good or bad? Are we on track? Is this better than before?
perceptualedge.com · T2
A dashboard should not show more detail or precision than needed (Few).
To support the purpose of rapid monitoring, dashboards should never display information that is more detailed or precise
perceptualedge.com · T2
The most prominent place on a dashboard is the top left corner (Few).
the most prominent position—the top left—is used to display the vendor
perceptualedge.com · T2
When everything is emphasised, nothing stands out (Few).
When everything is visually prominent, nothing
perceptualedge.com · T2
Numbers in tables are right-aligned.
Therefore, tables should keep numerical data right-aligned.
mattstromawn.com · T4
Keep the same number of decimal places in a column of numbers, and as few significant figures as possible.
One easy way to keep your tables properly aligned is to keep the same number of significant figures
mattstromawn.com · T4
A column header has the same alignment as its data.
Headers, generally, should carry whatever alignment their data has.
mattstromawn.com · T4
The Codex TUI style guide: ordinary text in the terminal's default colour.
Most of the time, just use the default foreground color.
The Codex TUI style guide: success in green, errors in red (ANSI colours).
- **Errors, failures and deletions:** Use ANSI `red`.
Design in layers: first whether the app works without colour, then whether the hierarchy reads in 16 ANSI colours, true colour last.
Start with monochrome: is the app _usable_ with no color at all? Then add 16 ANSI colors: is the hierarchy _readable_?
hyperbliss.tech · T4
Panels do not change place; the user navigates by memory of position.
Panels don't move. Tabs stay in order.
hyperbliss.tech · T4
Depth without borders comes from a few background layers, each about 5-8% lighter.
Three background layers, each ~5-8% lighter. Creates depth without borders.
hyperbliss.tech · T4
Under NO_COLOR focus has to be carried by a cue that does not depend on colour.
so focus must be carried by a cue that does not depend on color
lazygit, once opened, shows everything you need without overwhelming you.
Yet `lazygit` somehow manages to show you all of this without visually overwhelming you
bwplotka.dev · T4
DataTable in Textual takes cells as Rich Text, which allows styling and aligning them.
`Text` objects provide an easy way to style and justify cell content
Textual has a Digits widget, which draws large numbers from a 3x3 grid of characters.
A widget to display numerical values using a 3x3 grid of unicode characters.