srctree

Robin Linden parent e7e5e062 181f4a1e
Work around crash in certain terminals

ftxui measures the terminal to either have thousands of rows/columns, ora negative number of row/columns on certain terminals. Will make a realfix later.

inlinesplit
browser/main.cpp added: 2, removed: 2, total 0
@@ -75,7 +75,7 @@ void ftxui_test(dom::Node root) {
auto document = *create_ftxui_ui(root);
if (!document) { return; }
document = document | ftxui::size(ftxui::WIDTH, ftxui::LESS_THAN, 80);
auto screen = ftxui::Screen::Create(ftxui::Dimension::Full(), ftxui::Dimension::Fit(document));
auto screen = ftxui::Screen::Create(ftxui::Dimension{80, 10});
ftxui::Render(screen, document);
std::cout << screen.ToString() << std::endl;
}