colors: Use colors by default on terminals

This commit is contained in:
Adam Strzelecki
2015-06-10 18:21:40 +02:00
parent 8c671d22d6
commit 806dfe976d

View File

@@ -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)