From f5bbed75d021b84b181ede1d793a7401f928043c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 30 Jun 2025 23:55:35 +0200 Subject: console-client ncursesw: Fix confusion between color pair and video attribute COLOR_PAIR takes a color pair, it does not produce one. --- console-client/ncursesw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console-client/ncursesw.c') diff --git a/console-client/ncursesw.c b/console-client/ncursesw.c index ce62660c..116f86cc 100644 --- a/console-client/ncursesw.c +++ b/console-client/ncursesw.c @@ -438,7 +438,7 @@ conchar_attr_to_attr (conchar_attr_t attr) static inline short conchar_attr_to_color_pair (conchar_attr_t attr) { - return COLOR_PAIR (attr.bgcol << 3 | attr.fgcol); + return attr.bgcol << 3 | attr.fgcol; } static void -- cgit v1.2.3