Why is event input of type std::string and not char? #374
-
I was wondering why the |
Beta Was this translation helpful? Give feedback.
Answered by
ArthurSonzogni
Apr 9, 2022
Replies: 1 comment
-
UTF8 characters can take up to 4 char. You can try the example: It prints on the left, the array of char the terminal sent us. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
atinba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UTF8 characters can take up to 4 char.
Also, an event can be some mouse event, which can take 11 char.
You can try the example:
https://arthursonzogni.com/FTXUI/examples/?file=component/print_key_press
It prints on the left, the array of char the terminal sent us.