Skip to content

Commit

Permalink
Better hi-color support guessing.
Browse files Browse the repository at this point in the history
  • Loading branch information
deadpixi committed Jul 22, 2019
1 parent a5e6f9d commit 526d789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ getterm(void)
const char *envterm = getenv("TERM");
if (term)
return term;
if (envterm && strstr(envterm, "-256color") && !strstr(DEFAULT_TERMINAL, "-256color"))
if (envterm && COLORS >= 256 && !strstr(DEFAULT_TERMINAL, "-256color"))
return DEFAULT_TERMINAL "-256color";
return DEFAULT_TERMINAL;
}
Expand Down

0 comments on commit 526d789

Please sign in to comment.