mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Use 'process.stdout.write' to ensure colors get displayed correctly on Windows.
This commit is contained in:
1 parent
85b54e8946
commit
dda058b85e
1 file changed
+1
-1
+1
-1
@@ -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