From 58a0f8def5742248bf235c7c9cd9d3efcb334751 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 10 May 2026 00:15:52 +0200 Subject: support "default colors" * The terminal's default foreground and background colors are now used by default (`sciteco --no-profile`), so SciTECO integrates naturally into all terminal color schemes, even dark-on-bright ones. * The default Scintilla colors use only 0x000000 (COLOR_BLACK) and 0xC0C0C0 (COLOR_WHITE) now. * You can use `7EJ` to configure the default colors in color schemes or your profile. All existing color schemes had to disable default colors (`-1,-1,7EJ`) since they wouldn't look well otherwise. * You may add `-1,7EJ` to ~/.teco_ini when using a terminal emulator with a washed-out palettized COLOR_BLACK. We cannot detect the terminal's default colors automatically. * Scinterm updated to v6.0. We require a not-yet-upstreamed patch: https://github.com/orbitalquark/scinterm/pull/40 * In fact, we might decide not to support default colors at all in Scinterm, so this feature should be considered experimental. --- lib/colors/contrast.tes | 2 ++ lib/colors/solarized.tes | 2 +- lib/colors/terminal.tes | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/colors') diff --git a/lib/colors/contrast.tes b/lib/colors/contrast.tes index 256faad..c75ec9c 100644 --- a/lib/colors/contrast.tes +++ b/lib/colors/contrast.tes @@ -3,6 +3,8 @@ * This only highlights strings and comments (if supported by the terminal). * This is also the recommended color scheme on monochrome displays. *! +-1,-1,7EJ !* no default colors *! + [color.default] 0,Q[color.black],Q[color.white]  [[color.default]][color.linenumber] Q[color.black]U[color.caretline] diff --git a/lib/colors/solarized.tes b/lib/colors/solarized.tes index 91b2718..aeb9cb9 100644 --- a/lib/colors/solarized.tes +++ b/lib/colors/solarized.tes @@ -17,7 +17,7 @@ * `solarized.toggle` will be mapped to the F5 function key. * F5 will also automatically terminate the command line. *! -0,3EJ +0,3EJ -1,-1,7EJ !* no palette & no default colors *! 000,043,054:M[color.rgb]U[color.base03] 007,054,066:M[color.rgb]U[color.base02] diff --git a/lib/colors/terminal.tes b/lib/colors/terminal.tes index 39c5bac..b4ba88d 100644 --- a/lib/colors/terminal.tes +++ b/lib/colors/terminal.tes @@ -1,4 +1,6 @@ !* Default terminal color scheme *! +-1,-1,7EJ !* no default colors *! + [color.default] 0,Q[color.black],Q[color.white]  [color.linenumber] 0,Q[color.black],Q[color.white]  Q[color.black]U[color.caretline] -- cgit v1.2.3