From 806dfe976d3771c242b9c6d8702a75773e6c9dab Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Wed, 10 Jun 2015 18:21:40 +0200 Subject: [PATCH] colors: Use colors by default on terminals --- compiler/msgs.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 4df4430d72..2d7094e631 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)