added sigint handler for ansi_color_reset

This commit is contained in:
Justin 2023-03-15 01:56:14 +00:00
parent 116f94bfa2
commit 1ddaee93fb

View file

@ -755,6 +755,7 @@ static bool is_interacting = false;
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
void sigint_handler(int signo) {
printf(ANSI_COLOR_RESET);
if (signo == SIGINT) {
if (!is_interacting) {
is_interacting=true;