Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput and input of not printable characters #297

Open
aiotech-pub opened this issue Mar 16, 2024 · 0 comments
Open

TextInput and input of not printable characters #297

aiotech-pub opened this issue Mar 16, 2024 · 0 comments

Comments

@aiotech-pub
Copy link

aiotech-pub commented Mar 16, 2024

Describe the bug

  1. It is not possible to digit an escape sequence on a Text Input to insert a non printable character using an escape sequence (es. "\a")
  2. Also if I load a Text Input by code I have some problems if the character array contains some escape sequences (as \a \e \v).

I need to input a sequence of chars used as termination chars in a message to send, the most common sequence is "\x11\x13\x14\n" and I would like to input them in a Text Input control

This is what I want to have in my code (but does not work):
strcpy(nodeCOM.eomString, "\x11\x13\x14\n"); // \a \e \v _serialEomStringId = ESPUI.addControl(ControlType::Text, "Serial EOM string", nodeCOM.eomString, color, serialTab, serialEomStringCB);
and this is a qorking example:
strcpy(nodeCOM.eomString, "\b\t\f\r\n"); // \a \e \v _serialEomStringId = ESPUI.addControl(ControlType::Text, "Serial EOM string", nodeCOM.eomString, color, serialTab, serialEomStringCB);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant