rust-embedded-community / menu

Command-line menu system for embedded Rust platforms.
Apache License 2.0
51 stars 11 forks source link

Using arrows to edit the command #10

Open rmja opened 1 year ago

rmja commented 1 year ago

Writing something, then using left arrow to "move back the cursor", then edit something and hit "enter" should work.

thejpster commented 1 year ago

That would be a useful addition. You'd need to teach menu about ANSI escape sequences though.

thejpster commented 1 year ago

This also ties into a discussion around "cooked" and "raw" terminals. Because with a cooked terminal, the terminal does the line editing for you.