ANSIConsole
termenv
ANSIConsole | termenv | |
---|---|---|
2 | 6 | |
26 | 1,635 | |
- | - | |
0.0 | 5.1 | |
over 2 years ago | 3 days ago | |
C# | Go | |
MIT License | 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.
ANSIConsole
-
New ANSI Console application formatting package for developer friendliness
If you visit the Github repo, you'll find examples and screenshots.
termenv
-
go playground code doesn't work locally?
For example: https://github.com/muesli/termenv // Clear the visible portion of the terminal output := termenv.NewOutput(os.Stdout) output.ClearScreen()
-
tint: 🌈 slog.Handler that writes tinted logs
Why not let termenv do the hard part of making this portable across terminals? It also supports lesser-known conventions like NO_COLOR.
-
Tran - 🖥 Securely transfer and send anything between computers with TUI.
Termenv
- Show HN: Lip Gloss a CSS-like layout library for the terminal for Go
-
Tz: A Time Zone Helper
Look, you and I may have sane ANSI 16 colours, but it’ll be a very significant fraction of people that don’t (and almost no one will customise the next 240 colours). Remember things like that there’s a fairly high chance that blue is almost invisible against black, and even bright blue’s contrast is commonly much too low—to say nothing of the limited palette range.
But what this program is doing is using termenv’s HasDarkBackground function to decide whether the terminal is light or dark, and is then specifying RGB colours. I’d guess that it’ll try to guess whether to use 16 colours, 256 colours or 24-bit colour, but I don’t know. But the way it figures out the terminal’s background colour… ugh. Some terminals will support it, but for many it’ll fail and just assume black. Looks like on unix you could set an environment variable COLORFGBG to override this, https://github.com/muesli/termenv/blob/6bb55115565c27f4cc681..., but if you’re on Windows, tough luck, apparently you’re not allowed to have run `color f0` (Command Prompt) or similar: https://github.com/muesli/termenv/blob/537e36cb0472a69a3c828....
The simple fact of the matter is that there are no particularly good solutions for handling colour in terminals if you want the colours to cohere and map to real-world colour understanding, which is what something like this would prefer to be able to do.
What are some alternatives?
gdb-dashboard - Modular visual interface for GDB in Python
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.
mordant - Multiplatform text styling for Kotlin command-line applications
tcell - Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.
Tamar.ANSITerm - “ANSITerm” provides ANSI escape codes and true color formatting for .NET Core's Console on Linux terminals.
termbox-go - Pure Go termbox implementation
chat-gpt-console - ChatGPT as a terminal app
termdash - Terminal based dashboard.
go-isatty
mpb - multi progress bar for Go cli applications
go-prompt - Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
GCli - 🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应用,工具库,运行CLI命令,支持命令行色彩,用户交互,进度显示,数据格式化显示,生成bash/zsh命令补全脚本