---
topic: tui-frameworks
title: How to build a good TUI in 2026, and on which framework (Textual, OpenTUI, Ratatui, Bubble Tea, Ink)
description: Which TUI framework to choose in November 2026, how well each is maintained, and which design principles separate good TUIs from bad ones.
aliases: [tui, terminal interface, terminal app, terminal ui, text user interface, Textual, Rich, Toad, OpenTUI, OpenCode, Ratatui, Bubble Tea, Charm, Lip Gloss, Ink, synchronized output, NO_COLOR, command palette, snapshot testing]
domain: other
created: 2026-11-19
license: CC BY 4.0, Jakub Dudek
address: https://stacks.jakubdudek.com/tui-frameworks
---

## Conclusions

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:

- a command palette with fuzzy search [c5];
- a compositor with partial updates [c6];
- the same program in the browser [c7];
- key tests through Pilot and visual snapshots [c8, c9].

Its creator considers it mature [c3], but he is biased when he writes that Textual is ahead of the JS libraries and that Python is fast enough for a TUI [c10, c11].

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** is the most active and powers OpenCode [c14], but it requires Bun or Node 26 with FFI [c13].
- **Ratatui** is the base of the Codex TUI [c15, c26].
- **Bubble Tea** has had a v2 with a new renderer since February 2026 [c16].
- **Ink** powers Claude Code [c12].

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_COLOR` [c24];
- 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].
- **A number with context and without excess precision.** An amount alone says little without a comparison with something [c28], and needless digits only slow the reader down [c29].
- **Tables of numbers:** 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 `Text` with justification in a DataTable cell [c42], and large numbers are drawn by the Digits widget [c43].
- **Colour sparingly and with meaning.** 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_COLOR` focus has to be carried by something other than colour [c40].
- **Few borders, a fixed layout.** 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

### c1. The latest release of Textual is from 30 June 2026.
- source: https://github.com/Textualize/textual · T1
- quote: [ The more super releaseLatest Jun 30, 2026 ](https://github.com/Textualize/textual/releases/tag/v8.2.8)
- checked: 2026-11-19
- valid until: 2026-12-19

### c2. Since the company Textualize closed, Textual lives on as an open source project that McGugan still maintains.
- source: https://textual.textualize.io/blog/2025/05/07/the-future-of-textualize/ · T2
- quote: 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.
- checked: 2026-11-19
- valid until: 2026-12-19

### c3. Its creator considers Textual mature and battle-tested.
- source: https://textual.textualize.io/blog/2025/05/07/the-future-of-textualize/ · T2
- quote: Software is never finished, but Textual is mature and battle-tested.
- checked: 2026-11-19
- valid until: 2027-02-17

### c4. The last commit in Textual (9 October 2026) adds a maintainer's note to the bug report template.
- source: https://github.com/Textualize/textual · T1
- quote: Update bug report template with maintainer note
- checked: 2026-11-19
- valid until: 2026-12-19

### c5. Textual's command palette searches commands fuzzily.
- source: https://textual.textualize.io/guide/command_palette/ · T1
- quote: which means Textual will show commands that match the keys you type in the same order
- checked: 2026-11-19
- valid until: 2027-02-17

### c6. Textual's compositor refreshes only the changed region and allows smooth scrolling.
- source: https://textual.textualize.io/blog/2024/12/12/algorithms-for-high-performance-terminal-apps/ · T2
- quote: 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.
- checked: 2026-11-19
- valid until: 2027-02-17

### c7. The same Textual app runs in the terminal and in the browser.
- source: https://github.com/Textualize/textual · T1
- quote: Textual apps are equally at home in the browser as they are the terminal.
- checked: 2026-11-19
- valid until: 2027-02-17

### c8. Textual has an official pytest plugin for snapshot tests of an app's look.
- source: https://textual.textualize.io/guide/testing/ · T1
- quote: can help you catch otherwise difficult to detect visual changes in your app.
- checked: 2026-11-19
- valid until: 2027-02-17

### c9. Textual tests simulate key presses through the Pilot object.
- source: https://textual.textualize.io/guide/testing/ · T1
- quote: Both tests first construct an instance of the app and then call `run_test()` to get a Pilot object.
- checked: 2026-11-19
- valid until: 2027-02-17

### c10. McGugan (the creator, so biased) claims that Textual is ahead of the TUI libraries in JS.
- source: https://willmcgugan.github.io/announcing-toad/ · T2
- quote: when it comes to TUIs, Textual is so far ahead of anything in JS
- checked: 2026-11-19
- valid until: 2027-02-17

### c11. McGugan claims that Python is fast enough for a TUI.
- source: https://willmcgugan.github.io/announcing-toad/ · T2
- quote: it is more than fast enough for a TUI
- checked: 2026-11-19
- valid until: 2027-02-17

### c12. Claude Code is built on Ink.
- source: https://github.com/vadimdemedes/ink · T1
- quote: [Claude Code](https://github.com/anthropics/claude-code) - An agentic coding tool made by Anthropic.
- checked: 2026-11-19
- valid until: 2027-02-17

### c13. OpenTUI requires Bun 1.3.14+ or Node.js 26.4+ with experimental FFI.
- source: https://www.npmjs.com/package/@opentui/core · T1
- quote: runs on Bun 1.3.14 or later, or on Node.js 26.4.0 or later with ECMAScript modules (ESM) and `--experimental-ffi`.
- checked: 2026-11-19
- valid until: 2026-12-19

### c14. OpenCode uses OpenTUI in production.
- source: https://www.npmjs.com/package/@opentui/core · T1
- quote: OpenCode uses OpenTUI in production for millions of users.
- checked: 2026-11-19
- valid until: 2026-12-19

### c15. The codex-tui package (the Codex TUI, file codex-rs/tui/Cargo.toml) is a Rust crate.
- source: https://raw.githubusercontent.com/openai/codex/main/codex-rs/tui/Cargo.toml · T1
- quote: [package] name = "codex-tui"
- checked: 2026-11-19
- valid until: 2027-02-17

### c26. The codex-tui package declares a dependency on ratatui.
- source: https://raw.githubusercontent.com/openai/codex/main/codex-rs/tui/Cargo.toml · T1
- quote: ratatui = { workspace = true, features = [
- checked: 2026-11-19
- valid until: 2027-02-17

### c16. Bubble Tea v2 came out in February 2026 with a new renderer.
- source: https://ttlab.hopto.org/blog/2026-07-31-terminal-ui-development-guide?lang=en · T4
- quote: Bubble Tea shipped v2 in February 2026, its first breaking change, and the renderer was replaced with reportedly large performance gains.
- checked: 2026-11-19
- valid until: 2026-12-19

### c17. 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.
- source: https://ttlab.hopto.org/blog/2026-07-31-terminal-ui-development-guide?lang=en · T4
- quote: 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
- checked: 2026-11-19
- valid until: 2027-02-17

### c18. Synchronized output (DEC 2026) makes the terminal draw a frame atomically, without flicker.
- source: https://ttlab.hopto.org/blog/2026-07-31-terminal-ui-development-guide?lang=en · T4
- quote: Toggling DEC private mode 2026 on and off makes the terminal treat that span atomically.
- checked: 2026-11-19
- valid until: 2027-02-17

### c19. Good tools have both modes: a one-off printout with an argument and an interactive screen without arguments.
- source: https://ttlab.hopto.org/blog/2026-07-31-terminal-ui-development-guide?lang=en · T4
- quote: In practice, a lot of well-built tools offer both modes side by side
- checked: 2026-11-19
- valid until: 2027-02-17

### c20. ltui shows data from the cache in about 50 ms and refreshes it in the background.
- source: https://pantheon.run/blog/terminal-user-interfaces-are-back-ltui · T2
- quote: On launch, it renders the last-seen board locally in roughly 50 milliseconds, then refreshes from the tracker in the background.
- checked: 2026-11-19
- valid until: 2027-02-17

### c21. ltui: every action has a key and it can be remapped, but everything also works with the mouse.
- source: https://pantheon.run/blog/terminal-user-interfaces-are-back-ltui · T2
- quote: Vim motions are available and every binding can be remapped.
- checked: 2026-11-19
- valid until: 2027-02-17

### c22. A survey of 197 open source TUIs: only 12% of the test code checks the interface.
- source: https://pantheon.run/blog/terminal-user-interfaces-are-back-ltui · T2
- quote: A 2026 survey of 197 open-source TUIs found that only 12% of their test code exercised the interface
- checked: 2026-11-19
- valid until: 2027-02-17

### c23. A bar of shortcuts at the bottom: six keys are fine, sixteen are a problem.
- source: https://june.kim/chewy-tui · T4
- quote: Six keys is fine; sixteen is a problem.
- checked: 2026-11-19
- valid until: 2027-02-17

### c24. The NO_COLOR variable is a convention: when it is set, turn colours off.
- source: https://june.kim/chewy-tui · T4
- quote: If the environment variable is set, drop all color.
- checked: 2026-11-19
- valid until: 2027-02-17

### c25. Keys have to be separated into layers: a modal window takes the input before the screen beneath it.
- source: https://stele-ai.dev/blog/opentui-vs-ink · T2
- quote: A modal layer now claims input before the screen below it.
- checked: 2026-11-19
- valid until: 2027-02-17

### c27. A dashboard is information gathered on one screen so that it can be monitored at a glance (Few).
- source: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf · T2
- quote: consolidated and arranged on a single screen so the information can be monitored at a glance.
- checked: 2026-11-23
- valid until: 2027-05-22

### c28. A number on a dashboard needs context (compared with what, good or bad, are we on track) (Few).
- source: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf · T2
- quote: context means little. Compared to what? Is this good or bad? How good or bad? Are we on track? Is this better than before?
- checked: 2026-11-23
- valid until: 2027-05-22

### c29. A dashboard should not show more detail or precision than needed (Few).
- source: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf · T2
- quote: To support the purpose of rapid monitoring, dashboards should never display information that is more detailed or precise
- checked: 2026-11-23
- valid until: 2027-05-22

### c30. The most prominent place on a dashboard is the top left corner (Few).
- source: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf · T2
- quote: the most prominent position—the top left—is used to display the vendor
- checked: 2026-11-23
- valid until: 2027-05-22

### c31. When everything is emphasised, nothing stands out (Few).
- source: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf · T2
- quote: When everything is visually prominent, nothing
- checked: 2026-11-23
- valid until: 2027-05-22

### c32. Numbers in tables are right-aligned.
- source: https://mattstromawn.com/writing/tables/ · T4
- quote: Therefore, tables should keep numerical data right-aligned.
- checked: 2026-11-23
- valid until: 2027-05-22

### c33. Keep the same number of decimal places in a column of numbers, and as few significant figures as possible.
- source: https://mattstromawn.com/writing/tables/ · T4
- quote: One easy way to keep your tables properly aligned is to keep the same number of significant figures
- checked: 2026-11-23
- valid until: 2027-05-22

### c34. A column header has the same alignment as its data.
- source: https://mattstromawn.com/writing/tables/ · T4
- quote: Headers, generally, should carry whatever alignment their data has.
- checked: 2026-11-23
- valid until: 2027-05-22

### c35. The Codex TUI style guide: ordinary text in the terminal's default colour.
- source: https://raw.githubusercontent.com/openai/codex/main/codex-rs/tui/styles.md · T1
- quote: Most of the time, just use the default foreground color.
- checked: 2026-11-23
- valid until: 2026-12-23

### c36. The Codex TUI style guide: success in green, errors in red (ANSI colours).
- source: https://raw.githubusercontent.com/openai/codex/main/codex-rs/tui/styles.md · T1
- quote: - **Errors, failures and deletions:** Use ANSI `red`.
- checked: 2026-11-23
- valid until: 2026-12-23

### c37. Design in layers: first whether the app works without colour, then whether the hierarchy reads in 16 ANSI colours, true colour last.
- source: https://hyperbliss.tech/blog/terminal-renaissance/ · T4
- quote: Start with monochrome: is the app _usable_ with no color at all? Then add 16 ANSI colors: is the hierarchy _readable_?
- checked: 2026-11-23
- valid until: 2027-05-22

### c38. Panels do not change place; the user navigates by memory of position.
- source: https://hyperbliss.tech/blog/terminal-renaissance/ · T4
- quote: Panels don't move. Tabs stay in order.
- checked: 2026-11-23
- valid until: 2027-05-22

### c39. Depth without borders comes from a few background layers, each about 5-8% lighter.
- source: https://hyperbliss.tech/blog/terminal-renaissance/ · T4
- quote: Three background layers, each ~5-8% lighter. Creates depth without borders.
- checked: 2026-11-23
- valid until: 2027-05-22

### c40. Under NO_COLOR focus has to be carried by a cue that does not depend on colour.
- source: https://raw.githubusercontent.com/gfargo/skills/main/plugins/terminal/skills/tui-design/references/interaction-patterns.md · T4
- quote: so focus must be carried by a cue that does not depend on color
- checked: 2026-11-23
- valid until: 2027-05-22

### c41. lazygit, once opened, shows everything you need without overwhelming you.
- source: https://www.bwplotka.dev/2025/lazygit/ · T4
- quote: Yet `lazygit` somehow manages to show you all of this without visually overwhelming you
- checked: 2026-11-23
- valid until: 2027-05-22

### c42. DataTable in Textual takes cells as Rich Text, which allows styling and aligning them.
- source: https://textual.textualize.io/widgets/data_table/ · T1
- quote: `Text` objects provide an easy way to style and justify cell content
- checked: 2026-11-23
- valid until: 2027-02-21

### c43. Textual has a Digits widget, which draws large numbers from a 3x3 grid of characters.
- source: https://textual.textualize.io/widgets/digits/ · T1
- quote: A widget to display numerical values using a 3x3 grid of unicode characters.
- checked: 2026-11-23
- valid until: 2027-02-21

## History
