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")
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);
Describe the bug
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);