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. --- contrib/scinterm | 2 +- src/interface-curses/interface.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/scinterm b/contrib/scinterm index 9beb90c..4132493 160000 --- a/contrib/scinterm +++ b/contrib/scinterm @@ -1 +1 @@ -Subproject commit 9beb90cee008ee506bc6a581c050e87a04773f9a +Subproject commit 4132493fd18252a6f3a9dc963d8a388152cae9b8 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