#include <memory>
int main() {
auto document =
text(
"This text is an "),
text(
". Do you like it?"),
});
screen.Print();
return 0;
}
static Screen Create(Dimensions dimension)
Create a screen with the given dimension.
Dimensions Fit(Element &, bool extend_beyond_screen=false)
Element hbox(Elements)
A container displaying elements horizontally one by one.
Element text(std::wstring text)
Display a piece of unicode text.
Decorator hyperlink(std::string link)
Decorate using an hyperlink. The link will be opened when the user click on it. This is supported onl...
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.