From 869de7c6270c50481499c201aa16aa5bc3a56739 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 17 Apr 2026 01:18:20 +0200 Subject: Curses: fixed rendering bright/light colors on 8-color terminals * Scinterm was simply rendering them as black, thus effectively breaking the Linux and FreeBSD vts with terminal.tes. * I was considering to render light black as white on 8-color terminals, so it's always readable. However, if you add in A_BOLD there is a good chance that the color will end up grey - at least it does in the virtual terminals (consoles). * There is no need to use bright colors in the Scintilla view defaults. E.g. 0xFFFFF is "light white". However on 8-color terminals this will be rendered like white anyway. The new defaults are closer to what terminal.tes does. --- lib/colors/terminal.tes | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/colors/terminal.tes b/lib/colors/terminal.tes index ea048aa..39c5bac 100644 --- a/lib/colors/terminal.tes +++ b/lib/colors/terminal.tes @@ -9,6 +9,7 @@ Q[color.white]U[color.selback] !* Also used for popups *! [color.calltip] 0,Q[color.lwhite],Q[color.black]  +!* Due to the bold attribute this should be grey even on 8-color terminals *! [color.comment] 1,Q[color.black],Q[color.lblack]  [color.number] 0,Q[color.black],Q[color.cyan]  [color.keyword] 1,Q[color.black],Q[color.lwhite]  -- cgit v1.2.3