diff options
-rw-r--r-- | compiler/msgs.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 4df4430d7..2d7094e63 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -907,3 +907,6 @@ ropes.errorHandler = proc (err: RopesError, msg: string, useWarning: bool) = of rCannotOpenFile: rawMessage(if useWarning: warnCannotOpenFile else: errCannotOpenFile, msg) +# enable colors by default on terminals +if terminal.isatty(stdout): + incl(gGlobalOptions, optUseColors) |