whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.19k stars 221 forks source link

console io.read doesn't allow backspace #276

Closed technomancy closed 5 years ago

technomancy commented 5 years ago

Normally when connected over the serial port, backspace works fine. However, when you call io.read, it starts reading input in a different way where backspace seems to have no effect.

Curiously, the arrow keys do work in this mode, but it seems to be in overwrite mode. So you can get the same effect (if you're aware of the workaround) but it is disorienting.

the0ne commented 5 years ago

Hi @technomancy,

please don't try to use io.read while connected over serial port. As far as I have seen it's mainly used by wcc to transfer files. I don't think it's meant for interactive use.