mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
don't reset the terminal when --stdout is active
This commit is contained in:
@@ -866,7 +866,7 @@ proc rawMessage*(msg: TMsgKind, arg: string) =
|
||||
rawMessage(msg, [arg])
|
||||
|
||||
proc resetAttributes* =
|
||||
if optUseColors in gGlobalOptions:
|
||||
if {optUseColors, optStdout} * gGlobalOptions == {optUseColors}:
|
||||
terminal.resetAttributes()
|
||||
stdout.flushFile()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user