Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal.
This commit is contained in:
parent
0ba789697a
commit
707e9e3d6e
7 changed files with 16 additions and 5 deletions
|
@ -82,12 +82,16 @@ using namespace fmt;
|
|||
|
||||
%% write data;
|
||||
|
||||
#include <ftxui/screen/terminal.hpp>
|
||||
|
||||
ANSIParser::ANSIParser(sf::Color default_fg, sf::Color default_bg) :
|
||||
$default_fg(default_fg),
|
||||
$default_bg(default_bg)
|
||||
{
|
||||
|
||||
// the parser only handles full color so force it
|
||||
if(ftxui::Terminal::ColorSupport() != ftxui::Terminal::Color::TrueColor) {
|
||||
ftxui::Terminal::SetColorSupport(ftxui::Terminal::Color::TrueColor);
|
||||
}
|
||||
}
|
||||
|
||||
bool ANSIParser::parse(const std::string &screen, WriteCB write) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue