#include <iostream>
#include <memory>
#include <string>
auto document = text(
"FTXUI is a C++ library for terminal-based user interfaces.\n"
"It is functional, responsive, and cross-platform.\n"
"You can now use newlines directly within a single text() element,\n"
"making it easier to display multi-line strings without needing\n"
"to manually split them into a vbox() of multiple text() elements.") |
border | center;
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
Render(screen, document);
std::cout << screen.ToString() << std::endl;
return 0;
}
The FTXUI ftxui:: namespace.