Skip to content

Commit 9d2a67b

Browse files
committed
FIX: setting correct color after CTRL-C on Windows
1 parent 900e1dc commit 9d2a67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/win32/dev-stdio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ static void close_stdio(void)
543543
// that we handled it already
544544
SetConsoleTextAttribute(Std_Out, FOREGROUND_INTENSITY | FOREGROUND_MAGENTA);
545545
WriteConsoleW(Std_Out, L"[ESC]\r\n", 7, NULL, 0);
546-
SetConsoleTextAttribute(Std_Out, 0);
546+
SetConsoleTextAttribute(Std_Out, FOREGROUND_GREY);
547547
req->data[0] = '\x1B'; // ESC char
548548
req->actual = 1;
549549
return DR_DONE;

0 commit comments

Comments
 (0)