diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-05 10:44:08 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-05 10:44:08 -0800 |
commit | 063a465227f13c0d673a0d9cd82d0b9cff1f0fc2 (patch) | |
tree | ff5116ed36ca692c9793730de6f8b03abbc1c29f /fish_pager.cpp | |
parent | 230fb921ec89e3a30d5ccdad57beb1b77b4ab055 (diff) |
Begin to rework term256 support
Diffstat (limited to 'fish_pager.cpp')
-rw-r--r-- | fish_pager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index 8c81e138..c351a88b 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -1089,6 +1089,15 @@ static void init( int mangle_descriptors, int out ) free( wterm ); } + /* Infer term256 support */ + char *fish_term256 = getenv("fish_term256"); + bool support_term256; + if (fish_term256) { + support_term256 = from_string<bool>(fish_term256); + } else { + support_term256 = term && strstr(term, "256color"); + } + output_set_supports_term256(support_term256); } /** |