mless: support $NO_COLOR

http://no-color.org/
pull/91/head
Leah Neukirchen 6 years ago
parent 4014f03afe
commit 671bceec51

@ -11,6 +11,10 @@ function so(s) { return sprintf("\033[1m%s\033[0m", s) }
{ print }' { print }'
} }
if [ -n "${NO_COLOR+set}" ]; then
colorscan() { cat -; }
fi
if [ "$1" = --filter ]; then if [ "$1" = --filter ]; then
if [ "$2" = //scan ]; then if [ "$2" = //scan ]; then
mscan : 2>/dev/null | colorscan mscan : 2>/dev/null | colorscan

Loading…
Cancel
Save