Favicon of tcell

tcell

Go package for cell-based terminal rendering with Unicode support, 24-bit color, enhanced keyboard and mouse handling, and cross-platform compatibility.

Other

Tcell is a Go package that provides a cell-based view for text terminals, enabling developers to build sophisticated terminal user interfaces. It improves upon termbox with enhanced Unicode support, including wide characters and grapheme clusters, making it ideal for applications requiring international text rendering.

Key capabilities include:

  • Cross-platform compatibility: Pure Go implementation works on Linux, macOS, Windows, WASM, and Plan 9 without requiring CGO
  • Rich color support: Full 256-color palette with 24-bit true color support when available
  • Advanced input handling: Superior keyboard support with modifier discrimination (CTRL-I vs TAB) and enhanced mouse tracking including motion events, click-drag, and wheel support
  • Unicode excellence: Automatic conversion between UTF-8 and other character sets, proper handling of combining characters and wide characters
  • Performance optimized: Minimizes terminal data transmission by avoiding redundant sequences
  • Modern features: Bracketed paste support, flexible API with Put(), PutStr(), and PutStrStyled() methods

Tcell version 3 represents a significant evolution with breaking changes from earlier versions, requiring minor application updates. The package follows Go's support policy, officially supporting the current stable version and the immediately prior version of Go. Comprehensive examples and a tutorial are available in the repository, along with a gallery of showcase applications.

Features

True color

Media

Pros

4
  • Provides cell-based terminal rendering
  • Supports Unicode and 24-bit color
  • Offers enhanced keyboard and mouse handling
  • Pure Go, no CGO required

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to tcell

Favicon

 

  
 
Favicon

 

  
 
Favicon