From c1a832d838f8181d503a109aa6e836d2fe439632 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Thu, 10 Oct 2024 00:32:54 +0200 Subject: [PATCH] stop curses before exit on error --- ndisplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ndisplay.c b/ndisplay.c index 614e363..1092048 100644 --- a/ndisplay.c +++ b/ndisplay.c @@ -150,6 +150,7 @@ int main (int argc, char *argv[]) /* check */ if (COLORS == 0) { + endwin (); VERBOSE (ERROR, fprintf (stderr, "no color avaliable\n")); return 1; } -- 2.30.2