colors: Use colors by default on terminals
This commit is contained in:
parent
8c671d22d6
commit
806dfe976d
1 changed files with 3 additions and 0 deletions
|
|
@ -907,3 +907,6 @@ ropes.errorHandler = proc (err: RopesError, msg: string, useWarning: bool) =
|
||||||
of rCannotOpenFile:
|
of rCannotOpenFile:
|
||||||
rawMessage(if useWarning: warnCannotOpenFile else: errCannotOpenFile, msg)
|
rawMessage(if useWarning: warnCannotOpenFile else: errCannotOpenFile, msg)
|
||||||
|
|
||||||
|
# enable colors by default on terminals
|
||||||
|
if terminal.isatty(stdout):
|
||||||
|
incl(gGlobalOptions, optUseColors)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue