Minor fixes to make initializing the terminal more consistent and to remove a magic number for wall limits.
This commit is contained in:
parent
2d5490131d
commit
ae43dad499
12 changed files with 47 additions and 42 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue