No_color

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarQube - Static code analysis for 29 languages.
  • no_color

    Website data for no-color.org

    The linked page lists thirty of them. Chalk isn’t on the list, but it used to be:

    https://github.com/jcs/no_color/commit/98857d0

  • nofun

    filter ANSI colors and animations

    For tools that don't honor NO_COLOR, I have a filter called nofun, which gets rid of color and animations.

    https://github.com/alrs/nofun

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • ipython

    Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

    There’s one I’ve come across recently here where you’re fighting against syntax highlighting with extra error context. https://github.com/ipython/ipython/issues/13446#issuecomment...

  • chalk

    🖍 Terminal string styling done right

    This is the type of thing that should be supported in libraries like Chalk[0]. We all know that Joe Bloggs' CLI isn't going to be checking for NO_COLOR.

    [0]: https://www.npmjs.com/package/chalk

  • emacs-theme-gruvbox

    Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.

  • grc

    generic colouriser

    Conversely if you want to add color to a command, I have found Generic Colorizer to be useful: https://github.com/garabik/grc

  • bemenu

    Dynamic menu library and client program inspired by dmenu

    Environment variables are fine when used for things that usually don't change once they're set. For example, XDG_CONFIG_HOME or GOPATH. They are, however, absolutely awful when used to configure values that will probably change inside a session. A good example is BEMENU_OPTS from the bemenu program, which is used to change colors, font etc. Should I relogin into my session just to make a program use dark mode colors?

    https://github.com/Cloudef/bemenu#environment-variables

    In such cases, environment variables lose their intended purpose and they need to be stuffed into wrapper scripts or overridden on the command line before executing a command, which is extremely annoying.

  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

  • colorized-logs

    tools for logs with ANSI color

    Great question!

    There is ansi2txt (packaged as colorized-logs on debian).

    https://github.com/kilobyte/colorized-logs

    I also found some answers on SO with people using a sed command for this.

    https://stackoverflow.com/questions/17998978/removing-colors...

  • dotfiles

    My Arch Linux dotfiles managed using chezmoi. (by ayushnix)

    > Why is this so annoying? It's a very common workflow that allows you to customize how an application behaves and simplify how you run it.

    I don't know about others but I'm not a fan of monstrosity like this

    https://github.com/ayushnix/dotfiles/commit/2eb66eff8a03a5bf...

    If I stuff it into a wrapper script, I'm essentially trying to emulate config files, which is what should've been used in the first place. This is why I prefer using config files rather than creating uglier and harder to maintain wrapper scripts.

    > I'm a big fan of following the 12factor[1] approach.

    I guess if you don't want state associated with your deployments, environment variables are better but I would still argue that they aren't manageable when their values become large as shown above or if their numbers start approaching double digits because when that happens, you're essentially emulating config files anyways.

  • no-ansi

    A single-function CLI tool to strip escape codes from input

    I did a quick GitHub search and found two of them:

    https://github.com/kurtbuilds/no-ansi

    Written in rust and ultimately uses vte from alacritty to write through a virtual terminal. Can be given a file on the command line.

    https://github.com/emptymonkey/dumb

    Written in Lex and just strips a number of specific escape sequences (written 9 years ago so likely doesn't include a few). Only stdin to stdout.

  • dumb

    A tool for stripping control characters and escape sequences from terminal output in Linux.

    I did a quick GitHub search and found two of them:

    https://github.com/kurtbuilds/no-ansi

    Written in rust and ultimately uses vte from alacritty to write through a virtual terminal. Can be given a file on the command line.

    https://github.com/emptymonkey/dumb

    Written in Lex and just strips a number of specific escape sequences (written 9 years ago so likely doesn't include a few). Only stdin to stdout.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts