ArthurSonzogni
b6d1f8ebdb
Fix MSVC flag for UTF-8
2020-03-23 22:48:27 +01:00
Mikael Olenfalk
b2b42a8a04
Disable C++17 deprecation warnings
2020-03-23 22:44:13 +01:00
Mikael Olenfalk
71598cb18d
Fix warning: Namespace uses itself
2020-03-23 21:46:44 +01:00
Mikael Olenfalk
40800ac019
Use Console API to set and restore terminal mode on Windows
2020-03-23 21:42:33 +01:00
Mikael Olenfalk
f3cef48328
Fix more narrow conversion warnings
2020-03-23 21:32:12 +01:00
Mikael Olenfalk
c4f87a40b7
Fix narrow cast warnings
2020-03-23 21:27:16 +01:00
ArthurSonzogni
493e734680
Set clang-format macro indent.
...
1) Set clang-format macro indent.
2) Run clang-format on every files.
2020-03-23 21:26:00 +01:00
Mikael Olenfalk
9e71c467f6
Use Console API to get terminal size on Windows
...
Co-authored-by: Mikael Olenfalk <mikael@olenfalk.se>
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2020-03-23 21:11:34 +01:00
Mikael Olenfalk
539ec45036
Add missing <algorithm> include
2020-03-23 21:03:25 +01:00
Mikael Olenfalk
a1c390ea31
Require C++17 and force MSVC to treat source as UTF-8
...
Co-authored-by: Mikael Olenfalk <mikael@olenfalk.se>
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2020-03-23 20:51:25 +01:00
ArthurSonzogni
9ca8d41afc
Improve ScreenInteractive.
2020-03-23 09:23:57 +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
1e35687d64
Make FTXUI compatible with clang warnings.
2020-02-15 20:41:44 +01:00
ArthurSonzogni
6ef9f56da7
Update README.md
2020-02-12 13:54:13 +01:00
ArthurSonzogni
8cdfd9f854
Disable signe-compare.
2020-02-12 00:16:55 +01:00
ArthurSonzogni
65705d5bc7
Fix werror=type-limit on systems with char=unsigned char.
2020-02-11 23:43:26 +01:00
ArthurSonzogni
ebf857e73b
Add starter project.
2020-02-11 23:29:17 +01:00
ArthurSonzogni
1f1229564a
Fix (maybe uninitialized) on weak compilers.
2020-02-11 22:34:01 +01:00
ArthurSonzogni
a8fdfafe6a
Support the -pedantic flag.
2020-02-11 21:44:55 +01:00
Arthur Sonzogni
5637fa3a93
Merge pull request #10 from GiuseppeCesarano/master
...
CMakeLists.txt rewrite
2020-02-11 14:51:03 +01:00
Giuseppe
db888b3e09
CMakeLists.txt rewrite
2020-02-11 14:23:12 +01:00
Arthur Sonzogni
104d06f04e
Merge pull request #9 from alfishe/master
...
Fix compilation issue on macOS(CLang compiler)
2020-02-05 14:03:06 +01:00
Arthur Sonzogni
7a45585626
Update README.md
2020-02-04 11:48:01 +01:00
Arthur Sonzogni
f17acfba4c
Update README.md
2020-02-03 16:05:41 +01:00
Ilia Sharin
469d2cd736
Fix compilation issue on macOS(CLang compiler) where stdlib doesn't define quick_exit()
2020-02-02 15:27:46 -05:00
ArthurSonzogni
283f0fed08
Merge pull request #8 from bresilla/master
...
using TAB key event
2019-11-01 20:03:35 +01:00
ArthurSonzogni
22f8f0d3b7
Using TAB key event.
...
A key event that makes use of TAB key to cycle the elements.
Co-authored-by: Trim Bresilla <trim.bresilla@gmail.com>"
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2019-11-01 19:54:16 +01:00
ArthurSonzogni
7f0381e30a
Emit a new line when a component is interrupted.
...
While running a component, make sure to reset the cursor at the end of
the component and insert a new line.
This fixes:
https://github.com/ArthurSonzogni/FTXUI/issues/6
2019-09-18 22:02:51 +02:00
ArthurSonzogni
e1efcf2d97
Make DEL to be a special character.
2019-07-02 23:09:20 +02:00
ArthurSonzogni
65e7fae7df
Fix parsing of CSI escape sequence.
...
There was a bug, preventing the user from typing the DEL key.
This is related to bug:
https://github.com/ArthurSonzogni/FTXUI/issues/4
2019-07-01 00:44:50 +02:00
ArthurSonzogni
16ae64dfb4
Fix using undefined value bug.
2019-07-01 00:43:00 +02:00
ArthurSonzogni
01ab335919
Implement key Delete in component > Input.
...
The BS key is used to delete the character on the left of the cursor.
The DEL key is used to delete the character on the right of the cursor.
BackSpace was already implemented. This CL implements DEL.
This is related to bug:
https://github.com/ArthurSonzogni/FTXUI/issues/4
2019-07-01 00:40:55 +02:00
ArthurSonzogni
32871fcc6b
Add -Wextra
2019-06-30 23:59:27 +02:00
ArthurSonzogni
a87e70c96e
Handle terminal resize.
...
This is related to bug:
https://github.com/ArthurSonzogni/FTXUI/issues/3
2019-06-30 23:53:56 +02:00
ArthurSonzogni
b8a81bae9e
Add focus element in input component while the placeholder is displayed.
...
This should fix:
https://github.com/ArthurSonzogni/FTXUI/issues/2
2019-06-30 10:11:48 +02:00
ArthurSonzogni
8b79b3af99
Fix compilation errors in clang.
2019-06-30 10:11:37 +02:00
ArthurSonzogni
c7d903a628
📌 Update README.md
2019-06-29 19:05:22 +02:00
ArthurSonzogni
86c3b60a6f
Move the cursor to the input location.
...
Most CJK users use IME (input method) to type CJK characters. They need
the cursor to be at the correct location, not in the bottom right
corner.
This CL does:
* Move the cursor the focus() element.
* Hide the cursor (and show it at exit)
* Intercept SIGINT to guarantee proper cleanup all the time.
This should fix the second issue mentionned on:
https://github.com/ArthurSonzogni/FTXUI/issues/2
2019-06-29 18:52:58 +02:00
ArthurSonzogni
38df095b4a
Advertise CJK support.
2019-06-25 00:00:21 +02:00
ArthurSonzogni
eb6baaceea
Support full-width characters (CJK)
...
+ 3 tests.
The goal is to fix:
https://github.com/ArthurSonzogni/FTXUI/issues/2#issuecomment-504871456
2019-06-24 23:39:37 +02:00
ArthurSonzogni
9c1913de51
Fix xterm parsing. unsigned vs signed char problem.
2019-06-23 17:59:34 +02:00
ArthurSonzogni
001a0ae925
Add UTF8 support and a better xterm parsing.
...
This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/2
2019-06-23 17:52:31 +02:00
ArthurSonzogni
8fede35dc5
Fix tests expectations.
2019-06-17 21:29:51 +02:00
ArthurSonzogni
28e62663c3
Fix cmake install.
2019-02-02 18:54:23 +01:00
ArthurSonzogni
a366c9b9e2
Handle empty container.
2019-02-02 18:41:07 +01:00
ArthurSonzogni
620f70c3e5
Fix example/component/ CMakeLists.txt
2019-02-02 17:19:33 +01:00
ArthurSonzogni
15da9cdc18
Improve ScreenInteractive wait function.
2019-02-02 16:59:08 +01:00
ArthurSonzogni
17cd6d25a5
Merge pull request #1 from daminetreg/patch-1
...
🔧 fix nxxm deps file instructions as it is case sensitive.
2019-02-02 15:05:26 +00:00
Damien Buhl
efefb71034
🔧 fix nxxm deps file instructions as it is case sensitive.
2019-02-02 15:46:42 +01:00