tcell
Tcell is an alternate terminal package, similar in some ways to termbox, but better in others. (by gdamore)
Rich Interactive Widgets for Terminal UIs
Terminal UI library with rich, interactive widgets — written in Golang (by rivo)
Our great sponsors
tcell | Rich Interactive Widgets for Terminal UIs | |
---|---|---|
18 | 23 | |
4,357 | 9,749 | |
- | - | |
8.8 | 8.0 | |
4 days ago | 7 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tcell
Posts with mentions or reviews of tcell.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-02.
-
go playground code doesn't work locally?
https://github.com/gdamore/tcell s, err := tcell.NewScreen() // Clear screen s.Clear()
-
Help to find a terminal library
I have used https://github.com/gdamore/tcell/ for github.com/raff/gio-games/arrows (look at game_term.go that is the terminal version, alternative to the gio/graphical version)
-
Problem Installing Go Modules
Hi im using linux (distro: Fedora 37) and I dont i have problems with installing go modules. When i run the commands in terminal (bash) "go install github.com/gdamore/tcell/v2" it gives me this error: "go: 'go install' requires a version when current directory is not in a module Try 'go install github.com/gdamore/tcell/v2@latest' to install the latest version" So when I run the command: "go install github.com/gdamore/tcell/vs@latest" I get this error: "package github.com/gdamore/tcell/v2 is not a main package". Please someone help.
-
How to Create Console Screen Buffer in go?
Hi guys, I have fixed the problem. The problem was as stated: remove terminal behavior like when a key is pressed and held it does not work as needed. For example if I want to move character when user press key the player (character) will move one step then stops then move fast like text curser. The solution is not by using [Console Screen Buffer] the Tcell is enough, But the problem is caused by the way the input is read from the user as u/pekim says in comments it is a "Typical behaviour in most environments (not just Windows)". So to fix this you need to use windows API (w32) and read key using GetAsyncKeyState() that will fix the problem.
-
Need a TUI with multiline text input or good interactive CLI-interface style support
There's quite a variety of tui libraries in Go with all kinds of different tradeoffs. Likely you won't find one that does just exactly what you want (paren matching support seems particularly unlikely out of the box, dunno if you'll find something you can plug in). tview and the underlying, lower-level tcell may be useful. I see termbox mentioned a lot here though that looks more like a toolbox for building such things than a solution itself.
-
Which Go frameworks are recommended to assist with the creation of console based UI and GUI?
There's also tcell
-
TUIs
How about some libraries that help with building TUIs?
I'll start with https://github.com/gdamore/tcell
-
Monotty Desktopio - Text-based desktop environment inside your terminal
(notcurses is the first in C, and currently best globally. The first in Rust might be tui-rs. The first in Go might be tcell.)
-
tcell VS FINAL CUT - a user suggested alternative
2 projects | 1 Jan 2022
-
Snake game implementation.
a Snake Game implication in Go using 2d array. https://github.com/twiny/snaky it runs on terminal window using github.com/gdamore/tcell/v2/termbox to render Snake movement.
Rich Interactive Widgets for Terminal UIs
Posts with mentions or reviews of Rich Interactive Widgets for Terminal UIs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-17.
-
What are some good projects in Go for an experienced dev?
I've had fun writing an app with https://github.com/rivo/tview.
-
Picnic-TUI - Where Go and Groceries Create a Command-Line Feast
Spotify-TUI was developed in Rust, therefore I couldn’t simply use the same UI framework. Within Go a popular choice is tview https://github.com/rivo/tview which provides many similar UI widgets which covered all my needs.
-
GoLang — Simplifying Complexity “The Beginning”
. Web backend (with various frameworks available) . Web Assembly (one of them is vugu framework) . Microservices (some frameworks: Go Micro, Go Kit, Gizmo, Kite) . Fragments services (Term mentioned by @jeffotoni in a microservices discussion group) . Lambdas (FaaS example) . Client Server . Terminal applications (using the tview lib) . IoT (some frameworks) . Bots (some here) . Client Applications using Web technology . Desktop using Qt+QML, Native Win Lib (example Qt, Qt widgets, Qml) . Network Applications . Protocol applications . REST Applications . SOAP Applications . GraphQL Applications . RPC Applications . TCP Applications . gRPC Applications . WebSocket Applications . GopherJS (compiles Go to JavaScript)
-
Recommendations on building a simple DSL REPL?
The jist of what I did: The TUI lib I used was https://github.com/rivo/tview. While technically a TUI, it didn't look like one. Tui gave me components for user input, context-aware output formatting, and configurable hotkeys and command shortcuts. History was just an in-memory string map bound to a hotkey.
-
Help to find a terminal library
tview is built on top of the tcell library mentioned in another comment. I liked it so much that I forked it as cview.
-
Ramen has reached v0.2.0, the first production-ready version (in my opinion)
It's tview, the same framework underlying awesome k9s project.
- Equivalent to Pythons Rich?
-
WhatsApp in the terminal
A tui client for WhatsApp. My first ever go project!!! As a very slow learner I am really proud of how far I could bullshit my way through it. I used tview and whatsmeow for this.
-
Need a TUI with multiline text input or good interactive CLI-interface style support
After a user request cycle, however, the tview textarea widget is now in active development so stay tuned!
- Best Package for Go Interactive Shell
What are some alternatives?
When comparing tcell and Rich Interactive Widgets for Terminal UIs you can also consider the following projects:
bubbletea - A powerful little TUI framework 🏗
termbox-go - Pure Go termbox implementation
termui - Golang terminal dashboard
notcurses - blingful character graphics/TUI library. definitely not curses.
gocui - Minimalist Go package aimed at creating Console User Interfaces.
go-prompt - Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
tui-go
pterm - ✨ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.
tcell vs bubbletea
Rich Interactive Widgets for Terminal UIs vs bubbletea
tcell vs termbox-go
Rich Interactive Widgets for Terminal UIs vs termui
tcell vs notcurses
Rich Interactive Widgets for Terminal UIs vs gocui
tcell vs termui
Rich Interactive Widgets for Terminal UIs vs go-prompt
tcell vs gocui
Rich Interactive Widgets for Terminal UIs vs tui-go
tcell vs tui-go
Rich Interactive Widgets for Terminal UIs vs pterm