mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-23 05:18:08 +08:00
Update README and tutorial.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
# FTXUI
|
||||

|
||||
Functional Terminal (X) User interface
|
||||
|
||||
**Functional Terminal (X) User interface**
|
||||
|
||||
A simple C++ library for terminal based user interface.
|
||||
|
||||
## Demo:
|
||||

|
||||
|
||||
## 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();
|
||||
|
Reference in New Issue
Block a user