tcell
typer
Our great sponsors
tcell | typer | |
---|---|---|
18 | 86 | |
4,331 | 13,353 | |
- | - | |
8.8 | 6.7 | |
14 days ago | about 18 hours ago | |
Go | Python | |
Apache License 2.0 | MIT License |
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
-
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)
-
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.
Use tcell instead of this ugly mess.
-
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.
typer
- Copilot for your GitHub stars
-
Things I've learned about building CLI tools in Python
I have been using Typer on every one of my CLI projects which uses Click under the hood. The documentation is fantastic, the CLI app it produces looks great and lets you create things quickly. I high recommend it.
-
Things to do with standalone script
Adding CLI capabilities. My preferred library here is typer.
-
The different uses of Python type hints
Similarly for Typer, which is literally "the FastAPI of CLIs"[1]. Handy to type your `main` parameters and have CLI argument parsing. For more complicated cases, it's a wrapper around Click.
-
Command line parser library, which one do you like the most, regardless of language?
interesting that you hate python, but love Click. Did you try Typer which uses Click underneath?
-
I made a file manager in python
Try to make it into a command line tool? check https://typer.tiangolo.com/ for example
- How does "python3 *file* -*letter* work?
-
How to make a CLI?
I used this template repo to make a bash cli https://github.com/SierraSoftworks/bash-cli then I made a brew formula to make it installable. It provide a nice way to make a cli with nested commands like git. As others mentioned other languages like python have great support for making nice clis see https://typer.tiangolo.com/ for an example framework in python. I chose bash because packaging a python cli for a private brew package is a pain and 99% of what I needed the cli to do was inkoke other clis, so bash made sense for my case.
-
I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me
Very cool. I’ve been using Typer lately. Easy to give a library a cli without too much boilerplate.
-
Just released my much-improved YouTube archiver as v1.2 🎉🎉
Check out Typer for the command line tooling, might make it a bit easier to maintain later on!
What are some alternatives?
click - Python composable command line interface toolkit
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
bubbletea - A powerful little TUI framework 🏗
termbox-go - Pure Go termbox implementation
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
cement - Application Framework for Python
notcurses - blingful character graphics/TUI library. definitely not curses.
docopt - Pythonic command line arguments parser, that will make you smile
termui - Golang terminal dashboard
gocui - Minimalist Go package aimed at creating Console User Interfaces.