diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-04-01 00:53:47 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-04-01 00:53:47 -0700 |
commit | ab78075d06e254fc9643b5f25eb460c96678e423 (patch) | |
tree | a4b87cf6bc1a4045420057e3d65b0e9c04360f5a | |
parent | 52070ea5775d31b308718a31563215ec48638b6d (diff) |
Default all xterms into term256
-rw-r--r-- | input.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -314,7 +314,12 @@ void update_fish_term256(void) support_term256 = from_string<bool>(fish_term256); } else { env_var_t term = env_get_string(L"TERM"); - support_term256 = ! term.missing() && term.find(L"256color") != wcstring::npos; + if (term.missing()) { + support_term256 = false; + } else { + // assume that all xterms are 256 + support_term256 = (term.find(L"256color") != wcstring::npos || term.find(L"xterm") != wcstring::npos); + } } output_set_supports_term256(support_term256); } |