Only use colors if we are certain we are using a pseudoterminal.

This commit is contained in:
Daniel Rosenwasser
2015-10-05 23:37:50 -07:00
parent 2b4febee1c
commit c3e00a24f3
2 changed files with 12 additions and 9 deletions

View File

@@ -272,7 +272,7 @@ namespace ts {
args: process.argv.slice(2),
newLine: _os.EOL,
useCaseSensitiveFileNames: useCaseSensitiveFileNames,
write(s: string): void {
write(s: string): void {
process.stdout.write(s);
},
writesToTty: () => _tty.isatty(1),