1
0
Fork 0

use color codes only when printing to the terminal

This commit is contained in:
mfranz 2008-10-01 14:04:47 +00:00
parent ac1fbbbd66
commit 772112df89

View file

@ -49,7 +49,7 @@
var _c = func nil;
var color = func(enabled) {
if (enabled)
if (enabled and getprop("/sim/startup/stderr-to-terminal"))
_c = func(color, s) { "\x1b[" ~ color ~ "m" ~ s ~ "\x1b[m" }
else
_c = func(dummy, s) { s }