Hello,
Please move this to the appropriate category if it doesn't fit here :). Sorry.
I just ported minimalistic readline()-like library to ESP32 for using in my projects. Maybe you can find it useful as well. It allows line editing (just as in Linux shell), supports history, history search, etc. Can be used with C and C++.
Use proper communication software (like TeraTerm) - it doesn't work in Arduino IDE Serial Monitor.
Below is the library code (2 files and an example of use)
See the editline.h file for a compile-time settings (there are few #defines)
Home & End keys are not working, instead use Ctrl-E (End) and Ctrl-B (Home).
Up/Down arrows are for history browsing
Full list of key-functions is in the .c file (editing/navigation/search/to-upper/to-lowercase etc)
It works on my ESP32.
Enjoy
Looks like this:
Terminal settings:
editline.c (23,4 КБ)
editline.h (2,7 КБ)
sketch_sep3a.ino (346 байтов)