aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/view.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-04-17 01:18:20 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-04-17 01:18:20 +0200
commit869de7c6270c50481499c201aa16aa5bc3a56739 (patch)
tree42aea84a1c33dd519806eebd5db416f3c63d59a4 /src/view.c
parent34af154e92383161666751ca69a288c98f5cca60 (diff)
Curses: fixed rendering bright/light colors on 8-color terminalsmaster-fmsbw-ci
* 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.
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view.c b/src/view.c
index a522d1c..25c134d 100644
--- a/src/view.c
+++ b/src/view.c
@@ -112,9 +112,9 @@ teco_view_setup(teco_view_t *ctx)
teco_view_ssm(ctx, SCI_SETCARETFORE, 0xFFFFFF, 0);
teco_view_ssm(ctx, SCI_SETSELFORE, TRUE, 0x000000);
- teco_view_ssm(ctx, SCI_SETSELBACK, TRUE, 0xFFFFFF);
+ teco_view_ssm(ctx, SCI_SETSELBACK, TRUE, 0xC0C0C0);
- teco_view_ssm(ctx, SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF);
+ teco_view_ssm(ctx, SCI_STYLESETFORE, STYLE_DEFAULT, 0xC0C0C0);
teco_view_ssm(ctx, SCI_STYLESETBACK, STYLE_DEFAULT, 0x000000);
teco_view_ssm(ctx, SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Monospace");
teco_view_ssm(ctx, SCI_STYLECLEARALL, 0, 0);