Update README and tutorial.

This commit is contained in:
ArthurSonzogni
2019-01-27 16:56:37 +01:00
parent 65adb42124
commit cfdb18928d
2 changed files with 48 additions and 17 deletions

View File

@@ -1,9 +1,12 @@
# FTXUI
![Demo image](./examples/component/homescreen.gif)
Functional Terminal (X) User interface
**Functional Terminal (X) User interface**
A simple C++ library for terminal based user interface.
## Demo:
![Demo image](./examples/component/homescreen.gif)
## Feature
* Functional style.
* Simple and elegant syntax (in my opinion).
@@ -70,7 +73,7 @@ int main(int argc, const char *argv[])
text(L"middle") | flex,
text(L"right")
),
auto screen = Screen::TerminalOutput(document);
auto screen = Screen::Create(Dimension::Full, Dimension::Fit(document));
Render(screen, document.get());
std::cout << screen.ToString();