From 7fa9feae452ea05a083b17d3f0cdf69bf5d37822 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 26 Jan 2026 19:50:03 +0100 Subject: Curses: support up to 32767 color pairs * Instead of ORing COLOR_PAIR() into attributes, always pass separate `pair` arguments. Since they are `short` this allows for up to 32767 color pairs. Previously, we could only count on 256 color pairs (or 128 for SciTECO and Scinterm each). * Analoguous changes have been made to Scinterm. See also https://github.com/orbitalquark/scinterm/pull/37 Since it only correctly checks for overflows at the end of the color pair space, we allocate the second half of that space to Scinterm. It is now very unlikely to overflow the color pair space, though. * This wasn't critical of course since even the 128 pairs would be unlikely to exhaust as long as we support only 16 ANSI colors. Scinterm however supports arbitrary RGB colors and we might want to do so soon as well. --- contrib/scinterm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/scinterm b/contrib/scinterm index 967211c..c2f8235 160000 --- a/contrib/scinterm +++ b/contrib/scinterm @@ -1 +1 @@ -Subproject commit 967211cb099bbf3da8a0b74ed2b071506d4ffc1a +Subproject commit c2f823590a8152433fcba25eb93b48836d8db290 -- cgit v1.2.3