mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
tui: Add st to the always 256-colour capable list.
Also comment and augment some terminal colour tests.
This commit is contained in:
@@ -2459,7 +2459,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
||||
if (unibi_get_num(ut, unibi_max_colors) < 256) {
|
||||
// See http://fedoraproject.org/wiki/Features/256_Color_Terminals for
|
||||
// more on this.
|
||||
if (konsole || mate || xterm || gnome || rxvt
|
||||
if (konsole || mate || xterm || gnome || rxvt || st
|
||||
|| linuxvt // Linux 4.8+ supports 256-colour SGR.
|
||||
|| (colorterm && strstr(colorterm, "256"))
|
||||
|| (term && strstr(term, "256"))
|
||||
|
Reference in New Issue
Block a user