Commit Graph

409 Commits

Author SHA1 Message Date
Arthur Sonzogni
01f5d9f7bc
Remove flickering. (#95)
For some reason, ResetPosition() was also clearing the content. On very
slow terminal emulator like the one on Windows, flickering was visible.

This fixes:
https://github.com/ArthurSonzogni/FTXUI/issues/86
2021-05-16 10:59:19 +02:00
Arthur Sonzogni
ca0d74ac01
Warn for deprecated. (#94) 2021-05-16 09:57:55 +02:00
Arthur Sonzogni
69047ac1e4
Add warning for sign comparison. (#93) 2021-05-16 09:38:24 +02:00
Arthur Sonzogni
7daeac25c0
Modify signature of Container::Tab(...) (#92)
Take selector at the end to get more pleasing results with clang-format.
2021-05-15 02:32:42 +02:00
Arthur Sonzogni
2723616dc8
Make StringRef borrow reference only when taking a pointer. (#91) 2021-05-15 01:34:37 +02:00
Arthur Sonzogni
900ed256ae
Merge pull request #90 from ArthurSonzogni/functionnal_component
Functional component
2021-05-15 00:39:22 +02:00
ArthurSonzogni
7e4720b471
Fix typo in Doxyfile.in 2021-05-15 00:36:21 +02:00
ArthurSonzogni
8b67e722b4
Increase version. 2021-05-15 00:29:39 +02:00
ArthurSonzogni
fcc49fdce7
Format using iwyu. 2021-05-15 00:19:19 +02:00
ArthurSonzogni
048efb6912
Add {Const,}StringRef to simplify components. 2021-05-14 21:47:51 +02:00
ArthurSonzogni
9fdf235836
Improve the documentation. 2021-05-14 20:56:37 +02:00
ArthurSonzogni
58287c147a
Update every component examples.
Use the functional style instead of classes.
2021-05-14 00:45:03 +02:00
ArthurSonzogni
c9aa1805eb
Add the Renderer component. 2021-05-13 11:44:47 +02:00
ArthurSonzogni
6d75cb2748
Make component more functionnal 2021-05-09 22:35:34 +02:00
Arthur Sonzogni
322b628158
Reference rgb-tui 2021-05-02 15:45:52 +02:00
Arthur Sonzogni
9d15d1c275
Update README.md 2021-05-01 23:54:51 +02:00
Arthur Sonzogni
1f050e3fa5
Merge pull request #85 from ArthurSonzogni/feature/mouse-support
Add mouse support.
2021-05-01 23:52:22 +02:00
ArthurSonzogni
be219633e3
Merge remote-tracking branch 'origin' into feature/mouse-support 2021-05-01 23:45:13 +02:00
ArthurSonzogni
155758c073
Use IWYU. 2021-05-01 23:19:07 +02:00
ArthurSonzogni
eb399d20c5
Capture mouse for the slider component. 2021-05-01 18:13:56 +02:00
ArthurSonzogni
0af8201023
Add the slider component. 2021-04-29 00:18:58 +02:00
ArthurSonzogni
7d132c6225
Fix webassembly workflow. 2021-04-25 17:37:11 +02:00
ArthurSonzogni
f062634226
Fix compilation errors on WebAssembly and Windows. 2021-04-25 17:28:16 +02:00
Arthur Sonzogni
176848e3f6
Update README.md 2021-04-25 17:08:54 +02:00
ArthurSonzogni
5322e5a683
Increase version to 0.4.x
Version 0.4 bring mouse support.
See https://github.com/ArthurSonzogni/FTXUI/issues/7
2021-04-25 17:04:26 +02:00
ArthurSonzogni
a27c878a3f
Mouse support. Fix & verify Webassembly support.
There was some undefined behavior to be fixed in the terminal input
parser.

The behavior of flush seems to have change. The fix was to invert '\0'
and std::flush.
2021-04-25 16:58:16 +02:00
ArthurSonzogni
0b9b6c692a
Improve mouse support 2021-04-25 15:22:38 +02:00
Arthur Sonzogni
4bc299aa3f
Update README.md 2021-04-25 13:56:26 +02:00
ArthurSonzogni
8037a5fa5f
Improve mouse support for menu and toggle. 2021-04-24 18:16:13 +02:00
Arthur Sonzogni
c8c0857ce8
Add todoman in "Project using FTXUI" 2021-04-23 14:09:12 +02:00
ArthurSonzogni
890a41a64c
Add mouse implementation of most components. 2021-04-18 22:33:41 +02:00
ArthurSonzogni
d685a8655e
Parse mouse middle 2021-04-18 18:42:42 +02:00
ArthurSonzogni
cbd13499ae
Parse mouse events. 2021-04-18 18:32:38 +02:00
柚木鉉
e54d4643f5 Update terminal.cpp 2021-04-10 22:35:51 +02:00
ArthurSonzogni
476b9deaf8
Enable mouse tracking.
Request terminal to send mouse position.

See:
https://github.com/ArthurSonzogni/FTXUI/issues/7
2021-04-05 22:03:37 +02:00
ArthurSonzogni
386a0f9eac Add tests for the input component. 2021-03-28 18:25:16 +02:00
d
160b1c8bbc Added Home, End, PageUp, PageDown events.
Added handling for Home and End for input component
2021-03-28 18:25:16 +02:00
柚木鉉
a6c692edcf
Fix MSVC Warning D9025 (#80) 2021-03-22 10:31:35 +01:00
Arthur Sonzogni
a4c6daae53
Update README.md 2021-03-22 00:28:56 +01:00
Arthur Sonzogni
430c805dfd
Update README.md 2021-03-22 00:28:19 +01:00
Arthur Sonzogni
373b016ca9
Add webassembly support (#79) 2021-03-22 00:26:52 +01:00
ArthurSonzogni
cac94439ff
Add webassembly support 2021-03-21 23:30:46 +01:00
Arthur Sonzogni
65c0297789
Update windows-msvc.yaml 2021-03-21 21:53:25 +01:00
Arthur Sonzogni
83fe939332
Improve workflow and badges. (#78) 2021-03-21 14:08:09 +01:00
Arthur Sonzogni
3a0b2520eb
Split workflows by OS (#77) 2021-03-21 13:42:12 +01:00
Arthur Sonzogni
add8082cd9
Update the continuous-integration badge. 2021-03-20 23:04:23 +01:00
Arthur Sonzogni
a6a7f0a354
Add CI on github action. (#76) 2021-03-20 22:45:21 +01:00
jdfa
af4bf379bc
Swapped order of hidding cursor and setting alternative screen (#75)
On some terminal, going to the alternative screen disable cursor hiding.
 Swap of those commands fixed that issue.

Co-authored-by: d <d>
2021-03-16 09:46:02 +01:00
jdfa
9cc3779145
[Win] Fixed usage of ReadConsoleInput (#74)
ReadConsoleInput params: |nLength| is the size in array elements, not in byte.

Co-authored-by: d <d>
2021-03-13 21:02:01 +01:00
Arthur Sonzogni
d48e3decfc
Update README.md 2021-02-14 19:39:22 +01:00