+void print_error_message(const char *message, int width) {
+ if(with_colors) {
+ attron(COLOR_PAIR(COLOR_ERROR));
+ addnstr(message, width);
+ attroff(COLOR_PAIR(COLOR_ERROR));
+ } else {
+ attron(A_STANDOUT);
+ addnstr(message, width);
+ attroff(A_STANDOUT);
+ }
+}
+