From 06df96c5db5791ceed5794e222b3791158eef88c Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 5 Jul 2020 09:21:24 +0200 Subject: [PATCH] [config] Recognize st --- src/config/options.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/config/options.c b/src/config/options.c index 4bbc2639..f80fa922 100644 --- a/src/config/options.c +++ b/src/config/options.c @@ -795,6 +795,19 @@ register_autocreated_options(void) get_opt_int("terminal.fbterm.colors", NULL) = COLOR_MODE_256; get_opt_bool("terminal.fbterm.underline", NULL) = 0; #endif + get_opt_int("terminal.st-256color.type", NULL) = TERM_VT100; + get_opt_int("terminal.st-256color.latin1_title", NULL) = 0; +#ifdef CONFIG_TRUE_COLOR + get_opt_int("terminal.st-256color.colors", NULL) = COLOR_MODE_TRUE_COLOR; +#elif defined(CONFIG_256_COLORS) + get_opt_int("terminal.st-256color.colors", NULL) = COLOR_MODE_256; +#elif defined(CONFIG_88_COLORS) + get_opt_int("terminal.st-256color.colors", NULL) = COLOR_MODE_88; +#else + get_opt_int("terminal.st-256color.colors", NULL) = COLOR_MODE_16; +#endif + get_opt_bool("terminal.st-256color.italic", NULL) = 1; + get_opt_bool("terminal.st-256color.underline", NULL) = 1; } extern union option_info cmdline_options_info[];