From: Laurent Mazet Date: Wed, 9 Oct 2024 22:32:54 +0000 (+0200) Subject: stop curses before exit on error X-Git-Tag: v2.0~3 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=c1a832d838f8181d503a109aa6e836d2fe439632;p=display.git stop curses before exit on error --- 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; }