colorstring
no_color
colorstring | no_color | |
---|---|---|
1 | 30 | |
276 | 263 | |
- | - | |
10.0 | 7.3 | |
over 4 years ago | 14 days ago | |
Go | HTML | |
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.
colorstring
-
No_color
They are also reusing a library that makes no effort to use curses or terminfo, which is why TERM=dumb doesnโt work.
https://github.com/mitchellh/colorstring/blob/master/colorst...
no_color
- NO_COLOR
-
Terminal Colours Are Tricky
I was for a while faking a 16-color terminal without support for 256 colors just to avoid this configuration hell. I also tried https://no-color.org/ because Iโd rather have no colors than bad colors.
These days I just gave up and manually configure most apps to use ANSI colors (e.g. fzf etc have command switches for that), and let Vim and Emacs be the only non-ANSI apps which are instead set to match the colorscheme I use in the rest of the terminal. (Although stuff like vim-dim letโs you go one step further if you want.)
- Techniques I Use to Create a Great User Experience for Shell Scripts
-
Eza: A modern, maintained replacement for ls
I'm totally the other way around, I rely on colorized output heavily.
But! There's supposed to be a solution to this, set $NO_COLOR to some value. https://no-color.org
Totally reasonable to file a bug report against tools which don't check and respect that env variable.
-
TTE: Terminal Text Effects
It'd be good if it recognised https://no-color.org/ and just didn't do anything. Or maybe replaced with
Maybe it does, I didn't check.
- 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
What are some alternatives?
yash - Yet another shell
pytermgui - Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
nosh - The nosh toolset
Clipboard - ๐๐๏ธ๐ฌ Your new, ๐ง๐๐๐ค๐ฃ๐ ๐ช๐ก๐๐๐๐ค๐ช๐จ๐ก๐ฎ smart clipboard manager
macos-terminal-themes - Color schemes for default macOS Terminal.app
no-ansi - A single-function CLI tool to strip escape codes from input
gofx - ๐พ fx-like command-line JSON processing tool
grc - generic colouriser
window-switcher - Easily switch between windows of the same app with Alt+` (Backtick), also switch between apps with Alt+Tab.
colorized-logs - tools for logs with ANSI color
emacs-theme-gruvbox - Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.
bemenu - Dynamic menu library and client program inspired by dmenu