no_color | grc | |
---|---|---|
24 | 11 | |
257 | 1,811 | |
- | - | |
8.0 | 0.0 | |
7 days ago | 9 days ago | |
HTML | Python | |
- | GNU General Public License v3.0 or later |
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.
no_color
- Starship.rs: minimal, fast prompt for any shell
-
Unix Structured Concurrency
This sounds like a really good pattern, and something that deserves to become a modern standard (like https://no-color.org/).
I feel like this should be made opt in somehow. If you are a noninteractive process and stdin is a tty then you probably shouldn't be swallowing input. I frequently blind-type the next command while a long running command is active, because well behaved noninteractive programs don't swallow input from stdin.
- Command-line software which adds ANSI color to its output by default should check for a NO_COLOR environment variable that, when present and not an empty string (regardless of its value), prevents the addition of ANSI color.
- No_color
-
Announcing erdtree 3.0.0: A multi-threaded general purpose disk-usage and filesystem utility
Does this support the environment variable for NO_COLOR too? https://no-color.org/
- How and Why You Should Add Color to Your Scripts
-
Fulfilling a reader's request for my โdot filesโ
Some of us prefer tools which work best without them.
Allow me to repeat my plea for CLI developers to take a little time to read https://no-color.org and ensure their programs honor things like NO_COLOR, npm config set color false, TERM=dumb, INSIDE_EMACS etc.
https://news.ycombinator.com/item?id=35017940
-
OpenLoco Release v23.04
Change: [#1908] Detects if terminal is VT100 capable and uses colors for the output, can be disabled using NO_COLOR.
-
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.
grc
-
Show HN: Tailspin โ A Log File Highlighter
Probably not as efficient, but I've been happily using grc [0] for the past several years. It handles simple rules quite well - beyond the basic info/debug/error coloring I use it for QOL such as different colors for even/odd timestamps and highlighting decimal places in large numbers.
[0] https://github.com/garabik/grc
-
Is there a program that formats the output of another programming using custom formatting rules?
A fairly simple program which only colorizes is grc. I wrote acolor in a similar vein, but it uses arbitrary programs/scripts instead of pure regex, and I've only written support for the programs I use, so no tcpdump. Don't use it unless you want to write your own colorizing scripts (if you do, please contribute!)
-
Is there a non-bloated way to get the terminal (xfce) to show colors for things like the prompt, files, folders, variables, and so forth?
You may want to check https://github.com/garabik/grc
- What are some CLI tools that you use that have pretty outputs?
-
Lolcat terminal help.
You'll probably appreciate grc.
-
DNS Esoterica โ Why you can't dig Switzerland
There's this, which is a more modern dig, with color output, among other things: https://github.com/ogham/dog
There's also stuff like this, which will postprocess & color output from any command: https://github.com/garabik/grc, or https://github.com/armandino/TxtStyle
-
Format terminal output
I also found grc and wrote my own conf.latexmk:
-
No_color
Conversely if you want to add color to a command, I have found Generic Colorizer to be useful: https://github.com/garabik/grc
-
[Python] Parsing simple config files for a console coloriser (when this post is 30min old)
Last few streams I was working on a re-implementation of grc with more modern Python syntax and updated packaging meta-data.
- Colorized terminal
What are some alternatives?
pytermgui - Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
bemenu - Dynamic menu library and client program inspired by dmenu
Clipboard - ๐๐๏ธ๐ฌ Your new, ๐ง๐๐๐ค๐ฃ๐ ๐ช๐ก๐๐๐๐ค๐ช๐จ๐ก๐ฎ smart clipboard manager
no-ansi - A single-function CLI tool to strip escape codes from input
emacs-theme-gruvbox - Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.
pydflatex - Python wrapper around pdflatex
gofx - ๐พ fx-like command-line JSON processing tool
TxtStyle - Command-line tool for colorizing console output and log files based on regular expressions
window-switcher - Easily switch between windows of the same app with Alt+` (Backtick), also switch between apps with Alt+Tab.
nofun - filter ANSI colors and animations