We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e00c41 + a4d92d5 commit e048a25Copy full SHA for e048a25
compat/winansi.c
@@ -510,6 +510,8 @@ static HANDLE swap_osfhnd(int fd, HANDLE new_handle)
510
*/
511
close(new_fd);
512
513
+ if (fd == 2)
514
+ setvbuf(stderr, NULL, _IONBF, BUFSIZ);
515
fd_is_interactive[fd] |= FD_SWAPPED;
516
517
return duplicate;
@@ -547,6 +549,8 @@ static void detect_msys_tty(int fd)
547
549
!wcsstr(name, L"-pty"))
548
550
return;
551
552
553
554
fd_is_interactive[fd] |= FD_MSYS;
555
}
556
0 commit comments