NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.93k stars 1.53k forks source link

nix command shouldn't print escape sequence if $TERM is set to dumb #2477

Open lufia opened 6 years ago

lufia commented 6 years ago

Issue description

Typically, if TERM environment variable is set to dumb, then some commands should not print escape sequence such as ESC[31m, ESC[0m. nix search prints escape sequence even if set TERM=dumb.

Steps to reproduce

$ export TERM=dumb
$ nix search ansible
* ESC[0;1mnixpkgs.ESC[31;1mansibleESC[0;1mESC[0m (ESC[0;2mpython2.7-ESC[31;1mansibleESC[0;2mESC[0m)
  A simple automation tool

* ESC[0;1mnixpkgs.ESC[31;1mansibleESC[0;1m-lintESC[0m (ESC[0;2mpython2.7-
ESC[31;1mansibleESC[0;2m-lintESC[0m)
  Best practices checker for ESC[31;1mAnsibleESC[0m

Technical details

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info