mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 00:48:09 +08:00
Support full-width characters (CJK)
+ 3 tests. The goal is to fix: https://github.com/ArthurSonzogni/FTXUI/issues/2#issuecomment-504871456
This commit is contained in:
@@ -43,16 +43,6 @@ Event ParseUTF8(std::function<char()>& getchar, std::string& input) {
|
||||
return Event::Character(input);
|
||||
}
|
||||
|
||||
void ParsePs(std::function<char()> getchar, std::string input) {
|
||||
while (1) {
|
||||
char key = getchar();
|
||||
input += key;
|
||||
if ('0' <= key && key <= '9')
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Event ParseCSI(std::function<char()> getchar, std::string& input) {
|
||||
while (1) {
|
||||
char c = getchar();
|
||||
|
Reference in New Issue
Block a user