Open-source project
tui-cs/Terminal.Gui avatar
tui-cs/Terminal.Gui

Terminal.Gui v2: an instance-based .NET toolkit for terminal UIs that run in-line or full screen

Cross Platform Terminal UI toolkit for .NET

11,321 stars796 forksC#MIT

At a glance

What is it?
Terminal.Gui is an MIT-licensed C# library for building keyboard and mouse driven terminal applications on Windows, macOS and Linux. This look covers its v2 application model, the two install routes, the in-line mode, and what v1 users and source builders should expect.
Who is it for?
Terminal.Gui suits .NET developers who want a full widget set, keyboard bindings and themes in a terminal app, including CLI tools that scroll in-line. Teams on v1 should read the migration guide before upgrading, because the v2 entry point and namespaces differ.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly C#, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • tui-cs/Terminal.Gui11,321 ★ · +71
Star history
Repository2026-10-072026-11-25
tui-cs/Terminal.Gui11.3k11.3k

71 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Application.Create returns an instance you own

The v2 hello world does not touch a static application object. It creates one, initializes it, and disposes it through a using declaration:

csharp
using IApplication app = Application.Create ();
app.Init ();

using Window window = new () { Title = "Hello World (Esc to quit)" };
Label label = new ()
{
    Text = "Hello, Terminal.Gui v2!",
    X = Pos.Center (),
    Y = Pos.Center ()
};
window.Add (label);

app.Run (window);

The project documentation calls this the instance-based model and pairs it with an IRunnable pattern. The practical effect is that the lifetime of the terminal session is tied to an object you hold, so it ends when the using scope ends. Positions are expressions rather than fixed cells: Pos.Center () recomputes when the terminal is resized, which is the basis of the claim that console apps can be as responsive as a responsive web page. The example also shows the namespace split in v2, with Terminal.Gui.App, Terminal.Gui.ViewBase and Terminal.Gui.Views imported separately.

Two ways in: the NuGet package or the tui-simple template

If you already have a project, add the library from NuGet:

powershell
dotnet add package Terminal.Gui

If you are starting from nothing, the separate Terminal.Gui.Templates repository supplies a dotnet new template. The quick start installs it, scaffolds a project and runs it:

powershell
dotnet new install Terminal.Gui.Templates
dotnet new tui-simple -n myproj
cd myproj
dotnet run

The template route costs one extra global install but gives you a project that already compiles. The package route leaves you to write the Create, Init and Run sequence yourself. Both assume the dotnet CLI is on your path. Since everything ships as a .NET package, developers searching for a Python or PowerShell equivalent will not find one in this repository's layout, which contains C# projects such as Terminal.Gui, Terminal.Gui.Analyzers.Internal and Terminal.Gui.Interop.Spectre alongside Tests, Tools and Examples.

UI Catalog shows every view before you write code

The fastest way to judge the widget set is to clone the repository and run the bundled demo:

powershell
dotnet run --project Examples/UICatalog/UICatalog.csproj

The built-in views cover text editors, buttons, checkboxes, trees, tables, markdown, linear ranges, menus and selectors. Visualizations include charts, graphs, progress indicators and color pickers with TrueColor support. The text editor handles clipboard, undo and redo, and Unicode. File and directory browsers support search, filtering, Nerdfonts and coloring, and a wizard view covers guided multi-step flows with navigation and validation.

The Examples folder also holds a ScenarioRunner. Not every sample stays in this repository: Examples/README.md points to a moved examples repository, so a tutorial that references an example path may need you to look in that second repository.

In-line mode lets a CLI scroll with the terminal

Terminal.Gui apps can take over the whole screen or run in-line, scrolling with the terminal history the way agent command line tools such as Claude Code, Copilot CLI and Codex CLI do. That distinction matters for tools that print a little interactive UI in the middle of a normal shell session and then hand control back.

Input is keyboard first, with the stated goal that the user's hands never need to leave the keyboard, and full mouse support sits alongside it. Key bindings, themes, colors and settings are configurable and can be persisted, with a separate configuration guide covering themes and persistent settings. For an internal tool, that means users can rebind keys without you shipping a new build. Rendering is described as fast and based on double buffering.

v1 code needs a migration, not a version bump

Terminal.Gui has a dedicated guide titled Migrating from v1 to v2, plus a What's New in v2 page on the architectural changes. The new application model, the IRunnable pattern and the split namespaces shown in the hello world are the visible part of that change. Code written against v1, and the many forum answers and blog posts written for it, describe an API shape that v2 replaced.

The consequence for an existing v1 application is real work: changing the NuGet version alone is not the upgrade path the project points you to. Read the migration guide first, then the Application Architecture, Layout System, Keyboard Handling and View pages, which explain the view hierarchy and lifecycle, adornments, and how commands bind to keys. Budget time for that reading before you promise anyone a quick upgrade, and check that any third-party sample you copy targets v2.

The default branch is develop, not the release you installed

The repository's default branch is develop. Cloning it to run UI Catalog or to read source gives you whatever has landed since the last tag, not the code inside the package you pulled from NuGet. The most recent stable release is v2.5.0 from 2026-09-11, preceded by v2.5.0-beta.1 on 2026-09-03 and v2.4.17 on 2026-07-07. The last push to the repository came on 2026-11-02, so develop has moved on since v2.5.0.

If a behavior you see in UI Catalog does not match your app, check out the v2.5.0 tag before filing a bug. Versioning runs through a GitVersion.yml file, and package versions are centralized in Directory.Packages.props, which matters if you build the library yourself and want a version string that matches a release.

Scale and responsiveness claims are yours to verify

The README makes two strong statements: tables and tree views scale to infinite elements with sorting and filtering, and the layout system makes console apps as responsive as any responsive web page. Treat both as the project's own description. No figures for row counts, memory use or redraw times accompany them on the README, and a terminal's own speed varies by platform and emulator.

If your application depends on a table with a very large data source, build a small prototype with your real data and your target terminal before committing. The same applies to cross-platform consistency across Windows, macOS and Linux: the claim is consistent behavior, but Nerdfont glyphs in the file browser and TrueColor in the color picker depend on what the user's terminal and font support. Test on the oldest terminal your users run.

The repository is set up for AI coding agents

The top level carries AGENTS.md, CLAUDE.md, .cursorrules, .windsurfrules, .aider.md, llms.txt and an ai-v2-primer.md file, along with a .claude directory. These give coding assistants project context, and the primer is named for v2 specifically. If you use an assistant to write Terminal.Gui code, pointing it at ai-v2-primer.md or llms.txt is a cheap way to keep its suggestions on the v2 API.

For contributors, the project uses a .devcontainer, a global.json to pin the SDK, codecov for coverage, and a docfx folder that builds the documentation site at tui-cs.github.io/Terminal.Gui. Contributions go through CONTRIBUTING.md and a pull request template.

Editorial conclusion

Terminal.Gui suits .NET developers who want a full widget set, keyboard bindings and themes in a terminal app, including CLI tools that scroll in-line. Teams on v1 should read the migration guide before upgrading, because the v2 entry point and namespaces differ. Pin a NuGet release such as v2.5.0 rather than building from the develop branch, and measure the large table and tree claims against your own data before you depend on them.

Frequently asked questions

What is Terminal.Gui?

Terminal.Gui is an MIT-licensed, cross-platform UI toolkit for building terminal applications in .NET on Windows, macOS and Linux. It provides views such as tables, trees, text editors, menus and charts.

Is Terminal.Gui a good terminal GUI for Linux?

Terminal.Gui targets Linux and Unix alongside Windows and macOS, with keyboard-first input and full mouse support. It is a .NET library, so you need the dotnet toolchain to build apps with it.

Terminal.Gui vs CLI: which should I build?

Terminal.Gui covers both: apps can run full screen or in-line, scrolling with the terminal like a CLI tool. That lets a command line tool show interactive views and then return to the shell.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. tui-cs/Terminal.Gui on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/tui-cs-terminal-gui.svg)](https://hysenlabs.com/projects/tui-cs-terminal-gui)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/tui-cs-terminal-gui.svg)](https://hysenlabs.com/projects/tui-cs-terminal-gui)

Was this useful?