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:
Zed A. Shaw 2024-11-03 00:16:52 -04:00
parent 0ba789697a
commit 707e9e3d6e
7 changed files with 16 additions and 5 deletions

View file

@ -2,6 +2,7 @@
#include "ansi_parser.hpp"
#include <cmath>
#include <fmt/core.h>
#include <array>
std::array<sf::Color, 10> VALUES{
sf::Color{1, 4, 2}, // black
@ -35,6 +36,7 @@ SFMLRender::SFMLRender(Canvas &canvas, Screen &map_screen, Screen &screen) :
$default_bg(color(Value::BLACK)),
$ansi($default_fg, $default_bg)
{
// force true color, but maybe I want to support different color sets
$font.loadFromFile("./assets/text.otf");
$ui_text.setFont($font);
$ui_text.setPosition(0,0);