3 ms·
+1 for NO_COLOR. For example, yellow text on a dull yellow background? No thanks. For years I've just wrapped commands on bash to strip the colour control-cod
by notinventedhear 8y ago
+1 for NO_COLOR.
For example, yellow text on a dull yellow background? No thanks.
For years I've just wrapped commands on bash to strip the colour control-codes from stdout.
function monochrome() {
"$@" | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g"
}