aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2025-11-10 23:37:08 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2025-11-10 23:37:08 +0100
commit0596d9b769d347a0b07fef446137d1e0b90a952c (patch)
tree9db97f5c06d1ed7b9bfa1a917a125eea82686a01 /src
parent5c7502cacd8d5d88454ba1a29d028ef0ec098b54 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/interface-curses/interface.c4
1 files changed, 3 insertions, 1 deletions
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