stop curses before exit on error
authorLaurent Mazet <mazet@softndesign.org>
Wed, 9 Oct 2024 22:32:54 +0000 (00:32 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 9 Oct 2024 22:32:54 +0000 (00:32 +0200)
ndisplay.c

index 614e3639a37768714285aba01675b95abaf9cb83..10920485ce3906f9b58108a9da98154e7980eecd 100644 (file)
@@ -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;
     }