FTXUI/README.md

34 lines
1.5 KiB
Markdown
Raw Normal View History

2019-01-06 08:37:26 +08:00
# FTXUI
A C++ library for making text based user interface.
## Feature
* Functional style.
* Simple and elegant syntax (in my opinion).
* No dependencies.
## Example:
~~~cpp
vbox(
hbox(
text(L"left") | frame,
text(L"middle") | frame | flex,
text(L"right") | frame
),
gauge(0.5) | frame
)
~~~
~~~bash
┌────┐┌───────────────────────────────────────────────────────────────┐┌─────┐
│left││middle ││right│
└────┘└───────────────────────────────────────────────────────────────┘└─────┘
┌────────────────────────────────────────────────────────────────────────────┐
│██████████████████████████████████████ │
└────────────────────────────────────────────────────────────────────────────┘
~~~
## Tutorial
See [Tutorial](./tutorial.md)