#include <memory>
auto document =
hbox({
text("This text is an "),
text("hyperlink") | hyperlink("https://www.google.com"),
text(". Do you like it?"),
});
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
screen.Print();
return 0;
}
void Render(Screen &screen, const Element &element)
在 ftxui::Screen 上顯示元素。