mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 17:18:08 +08:00
Renames examples for style.
This commit is contained in:
20
examples/dom/style_inverted.cpp
Normal file
20
examples/dom/style_inverted.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "ftxui/screen/screen.hpp"
|
||||
#include "ftxui/dom/elements.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
using namespace ftxui;
|
||||
auto document =
|
||||
hbox(
|
||||
text(L"This text is "),
|
||||
text(L"inverted") | inverted,
|
||||
text(L". Do you like it?")
|
||||
);
|
||||
auto screen = Screen::TerminalOutput(document);
|
||||
Render(screen, document.get());
|
||||
|
||||
std::cout << screen.ToString();
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user