Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ftxui/dom/elements.hpp
✓ #include <ftxui/dom/elements.hpp>
Display centered text in the terminal
#include <ftxui/dom/elements.hpp>
#include <ftxui/screen/screen.hpp>
#include <iostream>
int main() {
using namespace ftxui;
auto document = text("Hello, FTXUI!") | center;
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
Render(screen, document);
std::cout << screen.ToString();
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.