Release 2.1.0 with modular CMake build

This commit is contained in:
Mario Fetka
2026-07-14 16:06:55 +02:00
parent 321171b127
commit a922885174
214 changed files with 202 additions and 126927 deletions
+5 -14
View File
@@ -105,15 +105,6 @@ int messageRow = 0;
int messageCol = 0;
/* because of different args for different ncurses, I had to write these
* my self
*/
#define kwattr_get(win, a, p, opts) ((void)((a) != 0 && (*(a) = (win)->_attrs)), (void)((p) != 0 && (*(p) = PAIR_NUMBER((win)->_attrs))), OK)
#define kwattr_set(win, a, p, opts) ((win)->_attrs = (((a) & ~A_COLOR) | COLOR_PAIR(p)), OK)
/* Message: prints a message to the screen */
void curses_message(char *message)
{
@@ -131,7 +122,7 @@ void curses_message(char *message)
* get the cursor position
*/
getyx(stdscr, y, x);
kwattr_get(stdscr, &attrs, &i, NULL);
wattr_get(stdscr, &attrs, &i, NULL);
move(messageRow - 1, 0);
clrtoeol();
move(messageRow, 0);
@@ -145,7 +136,7 @@ void curses_message(char *message)
* Unlock the mutex
*/
refresh();
kwattr_set(stdscr, attrs, i, NULL);
wattr_set(stdscr, attrs, i, NULL);
/*
* set the cursor to whhere it was */
@@ -162,13 +153,13 @@ int curses_query_user_input(const char *args, ...)
attr_t attrs;
int x, y;
int ch;
int i;
short i;
va_start(vp, args);
vsnprintf(p, sizeof(p), args, vp);
va_end(vp);
getyx(stdscr, y, x);
kwattr_get(stdscr, &attrs, &i, NULL);
wattr_get(stdscr, &attrs, &i, NULL);
attrset(COLOR_PAIR(PROMPT_PAIR) | A_BOLD);
move(19, 0);
@@ -188,7 +179,7 @@ int curses_query_user_input(const char *args, ...)
refresh();
noecho();
kwattr_set(stdscr, attrs, i, NULL);
wattr_set(stdscr, attrs, i, NULL);
/*
* set the cursor to where it was
*/