From 0596d9b769d347a0b07fef446137d1e0b90a952c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 10 Nov 2025 23:37:08 +0100 Subject: Curses: the rubbed out command line is now rendered with underlines again This requires enhanced INDIC_STRAIGHTBOX semantics, which are not yet upstream in Scinterm. --- src/interface-curses/interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c index a9f24dd..b365fb9 100644 --- a/src/interface-curses/interface.c +++ b/src/interface-curses/interface.c @@ -443,10 +443,12 @@ teco_interface_init(void) teco_cmdline_init(); /* * The default INDIC_STRIKE wouldn't be visible. - * FIXME: INDIC_PLAIN is not yet supported by Scinterm to get underlined text. + * Instead we use INDIC_STRAIGHTBOX, which will be rendered as underlined + * in the given foreground color. */ 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); /* * On all platforms except Curses/XTerm, it's -- cgit v1.2.3