Commit Graph

263 Commits

Author SHA1 Message Date
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
ArthurSonzogni
ed416b5e1e Remove comments when terminal size is determined. 2019-02-02 11:48:17 +01:00
ArthurSonzogni
77ecfb22f7 disable examples/html/test.html 2019-02-02 11:38:40 +01:00
ArthurSonzogni
fd059ae988 Add gitlab-ci.yml 2019-02-02 02:32:42 +01:00
ArthurSonzogni
ef0de8d873 Add support for nxxm.
[nxxm](https://nxxm.github.io)
2019-02-02 02:25:06 +01:00
ArthurSonzogni
2eddd0fa17 Update Readme.md 2019-01-27 17:20:55 +01:00
ArthurSonzogni
cc8b434dcc Update "Hosted on" section. 2019-01-27 17:17:29 +01:00
ArthurSonzogni
c66e948f7c Add "Project using FTXUI" section. 2019-01-27 17:11:43 +01:00
ArthurSonzogni
cfdb18928d Update README and tutorial. 2019-01-27 16:56:37 +01:00
ArthurSonzogni
65adb42124 Add Demo GIF. 2019-01-27 16:23:12 +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
5840966049 Update tutorial.md 2019-01-19 00:20:29 +01:00
Arthur Sonzogni
da5b4b5014 Update example/component/gallery.cpp 2019-01-18 22:58:32 +01:00
Arthur Sonzogni
621adf1a44 Update README.md 2019-01-18 22:46:28 +01:00
Arthur Sonzogni
01827ea8ce Add RadioBox. 2019-01-18 22:41:33 +01:00
Arthur Sonzogni
a6040bc360 Add CheckBox. 2019-01-12 22:25:49 +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
cf63aefa02 Refactor and bug fix: Wrong vbox height. 2019-01-06 23:24:58 +01:00
Arthur Sonzogni
e6614d6363 Fix cursor position for dom. 2019-01-06 22:45:10 +01:00
Arthur Sonzogni
acc7012f58 Add spinner. 2019-01-06 22:28:15 +01:00
Arthur Sonzogni
3b0a56e114 Add build example in README.md 2019-01-06 19:22:41 +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
1d29645cf5 Add LICENSE. Add take_any_args. 2019-01-06 16:14:19 +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
c854d07d63 Update tutorial.md and readme.md 2019-01-06 15:46:35 +01:00
Arthur Sonzogni
0b8a2ec181 Add more examples. 2019-01-06 01:28:14 +01:00