Use 'process.stdout.write' to ensure colors get displayed correctly on Windows.

This commit is contained in:
Daniel Rosenwasser 2015-07-24 12:18:18 -07:00
parent 85b54e8946
commit dda058b85e

View file

@ -271,7 +271,7 @@ namespace ts {
useCaseSensitiveFileNames: useCaseSensitiveFileNames,
write(s: string): void {
// 1 is a standard descriptor for stdout
_fs.writeSync(1, s);
process.stdout.write(s);
},
writesToTty: () => _tty.isatty(1),
readFile,