mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +08:00
Update tutorial.md and readme.md
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# 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)
|
||||
|
Reference in New Issue
Block a user