ArthurSonzogni
155758c073
Use IWYU.
2021-05-01 23:19:07 +02:00
ArthurSonzogni
cac94439ff
Add webassembly support
2021-03-21 23:30:46 +01:00
Arthur Sonzogni
406355df8c
Fix parsing of keys that are prefix of others. ( #58 )
...
The ESC key generates sequences that are prefix of others. For instance:
- ESC => [27]
- F1 => [27, 79, 8]
As a result, we can't generate the ESC event when receiving [27],
because it might be the start of the [27, 79, 8] sequence (or not).
Application usually applies a timeout to help detecting the ESC key.
This patch introduce a timeout. It is set to 50ms.
Bug: https://github.com/ArthurSonzogni/FTXUI/issues/55
2020-10-25 01:57:56 +02:00
Arthur Sonzogni
d969c74341
Improve color handling. ( #49 )
2020-10-16 22:31:24 +02:00
ArthurSonzogni
5291f660ca
Automatically fix style.
2020-09-07 11:25:50 +02:00
ArthurSonzogni
d09996a6c7
Add more example for colors.
2020-09-07 11:25:50 +02:00
Damien D
dc8c090753
Add support for full RGB colors.
...
FTXUI supported only the 16 colors palette.
This patch adds support for the 256 palette and the TrueColor(8×8×8)
mode.
This was made by kerdelos@ and fixes issue:
https://github.com/ArthurSonzogni/FTXUI/issues/45
Co-authored-by: Damien D <kerdelos@gmail.com>
Co-authored-by: Arthur Sonzogni <sonzogniarthur@gmail.com>
2020-09-07 11:25:50 +02:00
ArthurSonzogni
75c424cea9
Update document WIP.
2020-08-09 10:49:06 +02:00
ArthurSonzogni
e34f051f7a
Simplify the Render(screen, document) function.
2020-05-20 21:23:59 +02:00
ArthurSonzogni
957387adaa
Format.
2020-05-20 20:51:20 +02:00
ArthurSonzogni
e1a71d5b9f
Use shared_ptr instead of unique_ptr for elements.
...
This allow users to pass it into initializer list. Then clang-format
will produce 'acceptable' indentations.
This fixes:
https://github.com/ArthurSonzogni/FTXUI/issues/18
2020-05-20 20:51:20 +02:00
ArthurSonzogni
f506be941d
Add automatic formatting and license.
2020-04-19 21:01:09 +02:00
ArthurSonzogni
fce29a03b3
Run clang-format.
2020-03-27 01:42:46 +01:00
Mikael Olenfalk
f3cef48328
Fix more narrow conversion warnings
2020-03-23 21:32:12 +01:00
ArthurSonzogni
a402cb4fbb
Fix format. Try compile on Windows.
2020-03-22 22:32:44 +01:00
ArthurSonzogni
4ff45ee540
Add travis configuration.
2020-03-22 21:33:41 +01:00
ArthurSonzogni
eacb634a9e
Add example homepage.cpp
2019-01-27 02:33:06 +01:00
ArthurSonzogni
9117166541
Add Graph.
2019-01-26 21:52:55 +01:00
Arthur Sonzogni
1e92db7ec0
Add html_like example. Improve take_any_args.
2019-01-23 02:16:00 +01:00
Arthur Sonzogni
ce7867ab03
Add paragraph and fix hflow
2019-01-23 00:34:37 +01:00
Arthur Sonzogni
610b86183b
Add hflow.
2019-01-22 23:42:57 +01:00
Arthur Sonzogni
456ede70fd
Add size(direction, constraint, value).
...
For example:
============
element
| size(WIDTH, EQUAL 10);
element
| size(HEIGHT, GREATER_THAN, 10);
element
| size(WIDTH, EQUAL, 10)
| size(HEIGHT, EQUAL, 10)
2019-01-20 23:04:10 +01:00
Arthur Sonzogni
fddcbdea65
Add "frame" : scrollable area.
2019-01-19 22:06:05 +01:00
Arthur Sonzogni
cb4df0b56f
Renames examples for style.
2019-01-19 02:24:05 +01:00
Arthur Sonzogni
dba019139b
Refactor component containers.
2019-01-12 18:24:46 +01:00
Arthur Sonzogni
21644eea6b
Flatten the namespaces.
...
Remove:
* ftxui::screen
* ftxui::dom
* ftxui::component
Keep:
* ftxui
2019-01-12 15:00:08 +01:00
Arthur Sonzogni
acc7012f58
Add spinner.
2019-01-06 22:28:15 +01:00
Arthur Sonzogni
ccb437f4da
Add size(width, height) decorator.
2019-01-06 19:17:27 +01:00
Arthur Sonzogni
7efe8a6385
Separator ftxui::{screen,dom,component} into separate build unit.
2019-01-06 18:53:02 +01:00
Arthur Sonzogni
5887114793
Refactor directory structure.
...
The goal is to increase the separation in between:
* ftxui::screen
* ftxui::dom
* ftxui::component
2019-01-06 17:10:35 +01:00
Arthur Sonzogni
805c9061e5
Clean source code. Add to_wstring<T> T={int, float, double, ...}
2019-01-06 16:10:57 +01:00
Arthur Sonzogni
0b8a2ec181
Add more examples.
2019-01-06 01:28:14 +01:00
Arthur Sonzogni
6bf7acbd54
Update example package_manager.
2019-01-06 00:51:56 +01:00
Arthur Sonzogni
961e3dcb50
Pipeable decoration and the package_manager example.
...
- Pipeable decorator.
- package_manager example.
2019-01-05 02:03:49 +01:00
Arthur Sonzogni
178feaa6a9
Add menu styles.
2019-01-03 00:35:59 +01:00
Arthur Sonzogni
13e04176a4
Add Blink. Refactor examples.
2019-01-02 22:33:59 +01:00