fix that error message about non-colored terminals was printed before ending the curses session

Tue, 01 Sep 2026 16:44:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 01 Sep 2026 16:44:16 +0200
changeset 206
f8b9cdf60cf4
parent 205
4d452a723d96
child 207
ab4d9013e065

fix that error message about non-colored terminals was printed before ending the curses session

src/main.c file | annotate | diff | comparison | revisions
--- a/src/main.c	Mon Aug 31 18:48:55 2026 +0200
+++ b/src/main.c	Tue Sep 01 16:44:16 2026 +0200
@@ -1273,8 +1273,8 @@
         init_colorpairs();
         bkgd(COLOR_PAIR(COL_APP));
     } else {
-        fprintf(stderr, "Non-colored terminals are not supported yet.");
         endwin();
+        fprintf(stderr, "Non-colored terminals are not supported yet.\n");
         return EXIT_FAILURE;
     }
     atexit(cleanup);

mercurial