Minor fixes to make initializing the terminal more consistent and to remove a magic number for wall limits.

This commit is contained in:
Zed A. Shaw 2024-12-04 08:19:04 -05:00
parent 2d5490131d
commit ae43dad499
12 changed files with 47 additions and 42 deletions

View file

@ -4,6 +4,7 @@
#include <ftxui/dom/elements.hpp> // for hflow, paragraph, separator, hbox, vbox, filler, operator|, border, Element
#include "panel.hpp"
#include "ansi_parser.hpp"
#include "render.hpp"
using namespace ftxui;
using namespace fmt;
@ -27,8 +28,7 @@ void test_ansi_parsing(Panel &panel) {
}
TEST_CASE("can render a simple text panel", "[panel]") {
ftxui::Terminal::SetColorSupport(ftxui::Terminal::Color::TrueColor);
SFMLRender::init_terminal();
Panel text_panel(0, 0, 20, 5);
bool show_modal = false;
@ -59,7 +59,7 @@ TEST_CASE("can render a simple text panel", "[panel]") {
}
TEST_CASE("can render a simple grid panel", "[panel]") {
Terminal::SetColorSupport(Terminal::Color::TrueColor);
SFMLRender::init_terminal();
Panel grid_panel(20, 20, 20, 5, true);