Page 1 of 1

ESP32 telnet server catching CTRLC

Posted: Thu Feb 02, 2023 4:06 pm
by Rrobinet
Hi,

I have a Telnet server running that stops to work when a telnet client sends a CTRL C character.
Is it a way to catch this break character from the client.

The script is in C++ compiled with ARDUINO IDE
Thanks in advance

Re: ESP32 telnet server catching CTRLC

Posted: Fri Feb 03, 2023 10:04 am
by Rrobinet
Well,
This is a stupid question of course.
CTR+[x] is not to handle as an ASCII character (as for normal data entry) but as a string of binary code.
Typically CTRLC sends to the server a hexadecimal string of FFF4FFFD06.
So I did manage to handle these specific strings with my telnet server interactive data entry.
I wonder if this documented somewhere?
Robert