From e624826447d83f1b79e5442d3695a7528cf578cf Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 30 Jan 2026 14:22:59 +0100 Subject: fixup: high-color-pair support was still broken in Scinterm * Also updated A_XXX attributes to WA_XXX, where the "new" wattr_set() APIs are used. This doesn't make a difference on ncurses and PDCurses, but the X/Open standard demands it. * Allow color pairs up to 32767 instead of only up to 32766. * We now always require Curses wide-character APIs due to Scinterm, which has to use mvwin_wch(). We were practically depending on wide-character support anyway, so this shouldn't really restrict portability. * teco_curses_add_wc() has been simplified, now that we can rely on wide-char APIs. Perhaps it should be removed altogether? --- src/interface-curses/curses-info-popup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interface-curses/curses-info-popup.c') diff --git a/src/interface-curses/curses-info-popup.c b/src/interface-curses/curses-info-popup.c index f7d923d..83d4665 100644 --- a/src/interface-curses/curses-info-popup.c +++ b/src/interface-curses/curses-info-popup.c @@ -102,9 +102,9 @@ teco_curses_info_popup_init_pad(teco_curses_info_popup_t *ctx, attr_t attr, gsho ctx->pad = newpad(pad_lines, COLS - 2); /* - * NOTE: attr could contain A_REVERSE on monochrome terminals, + * NOTE: attr could contain WA_REVERSE on monochrome terminals, * so we use foreground attributes instead of background attributes. - * This way, we can cancel out the A_REVERSE if necessary. + * This way, we can cancel out the WA_REVERSE if necessary. */ wattr_set(ctx->pad, attr, pair, NULL); teco_curses_clrtobot(ctx->pad); @@ -216,7 +216,7 @@ teco_curses_info_popup_show(teco_curses_info_popup_t *ctx, attr_t attr, gshort p * Instead, simply draw reverse blanks. */ wmove(ctx->window, bar_y, COLS-1); - wattr_set(ctx->window, attr ^ A_REVERSE, pair, NULL); + wattr_set(ctx->window, attr ^ WA_REVERSE, pair, NULL); wvline(ctx->window, ' ', bar_height); } -- cgit v1.2.3