mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-10-31 08:19:34 +08:00
961e3dcb50
- Pipeable decorator. - package_manager example.
26 lines
518 B
C++
26 lines
518 B
C++
#include "ftxui/screen.hpp"
|
|
#include "ftxui/dom/elements.hpp"
|
|
#include <iostream>
|
|
|
|
int main(int argc, const char *argv[])
|
|
{
|
|
using namespace ftxui::dom;
|
|
auto document =
|
|
hbox(
|
|
text(L"left-column"),
|
|
separator(),
|
|
flex(vbox(
|
|
center(text(L"right-column")) | flex,
|
|
separator(),
|
|
center(text(L"bottom-column"))
|
|
))
|
|
);
|
|
auto screen = ftxui::Screen::TerminalFullscreen();
|
|
Render(screen, document.get());
|
|
|
|
std::cout << screen.ToString();
|
|
getchar();
|
|
|
|
return 0;
|
|
}
|