13 using namespace ftxui;
14 auto make_box = [](
int dimx,
int dimy) {
15 std::string title = std::to_string(dimx) +
"x" + std::to_string(dimy);
16 return window(text(title) | hcenter | bold,
17 text(
"content") | hcenter | dim) |
18 size(WIDTH, EQUAL, dimx) | size(HEIGHT, EQUAL, dimy);
21 auto document = vflow({
43 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
44 Render(screen, document);