From 5f4fff14a3d3a87d68bd5b96405c64503d07c375 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 11 Nov 2025 23:15:52 +0100 Subject: Curses: the default rubbed out command line color is COLOR_WHITE now 0x404040 (COLOR_LBLACK) is a poor choice since on terminal emulators with less than 16 colors, it would be rendered in black (and thus be invisible). --- src/interface-curses/interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/interface-curses/interface.c') diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c index b365fb9..a57b19c 100644 --- a/src/interface-curses/interface.c +++ b/src/interface-curses/interface.c @@ -443,11 +443,10 @@ teco_interface_init(void) teco_cmdline_init(); /* * The default INDIC_STRIKE wouldn't be visible. - * Instead we use INDIC_STRAIGHTBOX, which will be rendered as underlined - * in the given foreground color. + * Instead we use INDIC_STRAIGHTBOX, which will be rendered as underlined if + * the alpha is 0. */ teco_cmdline_ssm(SCI_INDICSETSTYLE, INDICATOR_RUBBEDOUT, INDIC_STRAIGHTBOX); - teco_cmdline_ssm(SCI_INDICSETFORE, INDICATOR_RUBBEDOUT, 0x404040); teco_cmdline_ssm(SCI_INDICSETALPHA, INDICATOR_RUBBEDOUT, 0); /* -- cgit v1.2.3