ESP32 telnet server catching CTRLC

Rrobinet
Posts: 29
Joined: Wed Aug 16, 2017 7:05 am

ESP32 telnet server catching CTRLC

Postby Rrobinet » Thu Feb 02, 2023 4:06 pm

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

Rrobinet
Posts: 29
Joined: Wed Aug 16, 2017 7:05 am

Re: ESP32 telnet server catching CTRLC

Postby Rrobinet » Fri Feb 03, 2023 10:04 am

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

Who is online

Users browsing this forum: Baidu [Spider] and 137 guests