Favicon of tview

tview

Go package providing rich, interactive terminal UI components including forms, tables, trees, text views, and layouts with extensive customization options.

tview is a comprehensive Go package for building professional terminal-based user interfaces with minimal effort. It delivers a complete set of interactive widgets that handle the complexity of terminal rendering while keeping your code clean and maintainable.

The library includes everything needed for modern TUI applications: input forms with text fields, selections, and checkboxes, navigable multi-color text views, editable multi-line text areas, sophisticated table views with sorting, flexible tree views for hierarchical data, selectable lists, image rendering, and powerful layout systems including grid, flexbox, and page-based layouts. Additional features include modal message windows and an application wrapper that handles the event loop and rendering pipeline.

Each component comes with extensive customization options allowing you to adjust colors, borders, padding, focus behavior, and more. The architecture is designed for easy extension—you can create custom widgets by composing existing ones or implementing the primitive interface.

The package has proven itself in production through adoption by major projects like K9s (Kubernetes CLI), GitHub CLI, podman-tui, and dozens of other tools. Whether you're building database browsers, system monitors, file managers, or interactive dashboards, tview provides the foundation to create responsive, user-friendly terminal applications without wrestling with low-level terminal control codes.

Features

ScriptableTrue color

Media

Pros

4
  • Provides a rich set of interactive terminal UI components.
  • Offers extensive customization options for components.
  • Includes layouts like Grid and Flexbox for flexible arrangement.
  • Supports modal message windows and an application wrapper.

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to tview

Favicon

 

  
 
Favicon

 

  
 
Favicon