Description
Pasting a command line into picoruby-shell does not work on R2P2-ESP32. Nothing is inserted into the prompt, so the user cannot paste-and-execute a command as is possible on R2P2 (Raspberry Pi Pico).
Steps to reproduce
- Flash and boot R2P2-ESP32.
- Open the serial console and wait for the picoruby-shell prompt.
- Copy any command (e.g.
echo "Hello, PicoRuby.") to the clipboard.
- Paste it into the terminal with
Ctrl+V (or Cmd+V on macOS).
Actual behavior
Nothing happens. The pasted text does not appear at the prompt, and no command is entered.
Expected behavior
The pasted text should appear at the prompt just like on R2P2 (Raspberry Pi Pico), and pressing Enter afterwards should execute the command.
Environment
Reproduced in both of the following environments:
Suspected cause
The ESP32 port of picoruby-machine likely diverges from the rp2040 port in how it reads characters from the console, which seems to be the root cause.
Aligning the ESP32 implementation with the rp2040 one is expected to fix the issue.
Description
Pasting a command line into picoruby-shell does not work on R2P2-ESP32. Nothing is inserted into the prompt, so the user cannot paste-and-execute a command as is possible on R2P2 (Raspberry Pi Pico).
Steps to reproduce
echo "Hello, PicoRuby.") to the clipboard.Ctrl+V(orCmd+Von macOS).Actual behavior
Nothing happens. The pasted text does not appear at the prompt, and no command is entered.
Expected behavior
The pasted text should appear at the prompt just like on R2P2 (Raspberry Pi Pico), and pressing
Enterafterwards should execute the command.Environment
Reproduced in both of the following environments:
rake monitor(i.e.idf.py monitor) on macOSSuspected cause
The ESP32 port of
picoruby-machinelikely diverges from the rp2040 port in how it reads characters from the console, which seems to be the root cause.Aligning the ESP32 implementation with the rp2040 one is expected to fix the issue.