Skip to content

picoruby-shell does not accept pasted input on ESP32 #114

@yuuu

Description

@yuuu

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

  1. Flash and boot R2P2-ESP32.
  2. Open the serial console and wait for the picoruby-shell prompt.
  3. Copy any command (e.g. echo "Hello, PicoRuby.") to the clipboard.
  4. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions