From 77117c7e4d14dbd9d7e8d587b3b6e75f45c30d2e Mon Sep 17 00:00:00 2001 From: Rickey Bowers Jr Date: Sun, 19 Mar 2023 11:27:16 -0600 Subject: [PATCH] (per #283) try to force flush of color reset in SIGINT handler --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 5436074ba..1bc6a6dd1 100644 --- a/main.cpp +++ b/main.cpp @@ -748,6 +748,7 @@ static bool is_interacting = false; #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) || defined (_WIN32) void sigint_handler(int signo) { printf(ANSI_COLOR_RESET); + printf("\n"); // this also force flush stdout. if (signo == SIGINT) { if (!is_interacting) { is_interacting=true;