summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-06-30 23:55:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-06-30 23:55:35 +0200
commitf5bbed75d021b84b181ede1d793a7401f928043c (patch)
treed5e99bfd5e23753b3d76896d0bc671e43b15f966
parent92953d492d745dee87242c5be2b1d1437e206d64 (diff)
console-client ncursesw: Fix confusion between color pair and video attribute
COLOR_PAIR takes a color pair, it does not produce one.
-rw-r--r--console-client/ncursesw.c2
1 files changed, 1 insertions, 1 deletions
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