From ed518a8e2deb7bde7199d3f5ea46c97ef21601f3 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 30 Apr 2016 12:52:18 +0200 Subject: [PATCH] Improve 256 color terminal detection --- ChangeLog | 3 +++ src/fterm.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 68600575..9ce62d65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2016-04-30 Markus Gans + * Improve 256 color terminal detection + 2016-04-19 Markus Gans * Fix the missing typecast for SpecialCharacter in "ui.cpp" diff --git a/src/fterm.cpp b/src/fterm.cpp index cb217d3b..85228e6a 100644 --- a/src/fterm.cpp +++ b/src/fterm.cpp @@ -761,6 +761,8 @@ char* FTerm::init_256colorTerminal() } color256 = true; } + else if ( strstr (termtype, "256color") ) + color256 = true; else color256 = false;