master
parent
00597c0aaa
commit
aee2ac5b27
@ -0,0 +1,24 @@ |
||||
#include <ftxui/dom/elements.hpp> |
||||
#include <ftxui/screen/screen.hpp> |
||||
#include <iostream> |
||||
|
||||
int main(void) { |
||||
using namespace ftxui; |
||||
|
||||
// Define the document
|
||||
Element document = |
||||
hbox({ |
||||
text("left") | border, |
||||
text("middle") | border | flex, |
||||
text("right") | border, |
||||
}); |
||||
|
||||
auto screen = Screen::Create( |
||||
Dimension::Full(), // Width
|
||||
Dimension::Fit(document) // Height
|
||||
); |
||||
Render(screen, document); |
||||
screen.Print(); |
||||
|
||||
return EXIT_SUCCESS; |
||||
} |
Loading…
Reference in new issue