https://github.com/gdamore/tcell
Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.
https://github.com/gdamore/tcell
Last synced: about 2 months ago
JSON representation
Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.
- Host: GitHub
- URL: https://github.com/gdamore/tcell
- Owner: gdamore
- License: apache-2.0
- Created: 2015-09-27T06:37:33.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2026-04-19T02:55:45.000Z (about 2 months ago)
- Last Synced: 2026-04-19T04:33:41.611Z (about 2 months ago)
- Language: Go
- Size: 3.21 MB
- Stars: 5,128
- Watchers: 60
- Forks: 353
- Open Issues: 12
-
Metadata Files:
- Readme: README-plan9.md
- Changelog: CHANGESv2.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
- Authors: AUTHORS
- Agents: AGENTS.md
Awesome Lists containing this project
- go-awesome - tcell
- awesome-trevor - TCell - alternate terminal package, similar in some ways to termbox (Programming / Golang)
- awesome-starred - tcell - Tcell is an alternate terminal package, similar in some ways to termbox, but better in others. (Go)
- my-awesome - gdamore/tcell - 05 star:5.2k fork:0.4k Tcell is an alternate terminal package, similar in some ways to termbox, but better in others. (Go)
- awesome-reverse-engineering - **1816**星
- awesome-tuis - tcell
- awesome-ascii-apps - gdamore/tcell - Cell-based terminal handling library for Go. (ASCII UI/UX Frameworks & Foundations / Imported: Upstream Snippet Gallery)
README
# _Tcell_ on Plan 9
> [!NOTE]
> Plan 9 is supported on a best-effort basis, as the main _Tcell_ development team does not have a Plan 9 environment.
The Plan 9 backend opens `/dev/cons` for I/O, enables raw mode by writing `rawon`/`rawoff` to `/dev/consctl`.
It watches `/dev/wctl` for resize notifications.
The default mode for `vt((1)` is VT100, which will only provide basic monochrome text, and few additional features.
In this case, it is expected that `TERM=vt100` is set.
It may be possible to emulate more modern terminals using `-2` (VT220), `-a` (ANSI), or `-x` (XTerm) flags to `vt`.
While this has not been tested, the use of `-x` to get xterm like features, combinerd with a `TERM=xterm` may yield superior results,
including possibly color and mouse support.
Note that if _Tcell_ does not find a suitable value for `TERM` in the environment, it will assume XTerm like functionality.