don't reset the terminal when --stdout is active

This commit is contained in:
Araq 2015-07-16 15:26:04 +02:00
commit f79e58edce

View file

@ -866,7 +866,7 @@ proc rawMessage*(msg: TMsgKind, arg: string) =
rawMessage(msg, [arg]) rawMessage(msg, [arg])
proc resetAttributes* = proc resetAttributes* =
if optUseColors in gGlobalOptions: if {optUseColors, optStdout} * gGlobalOptions == {optUseColors}:
terminal.resetAttributes() terminal.resetAttributes()
stdout.flushFile() stdout.flushFile()