mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Use 'process.stdout.write' to ensure colors get displayed correctly on Windows.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user