rust-embedded-community / menu

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

Example behaves unexpectedly, adds entire input on each key stroke #7

Closed QuarkNerd closed 2 years ago

QuarkNerd commented 4 years ago

Using

menu = "0.3.2"
pancurses = "0.16.1"

win 10, cargo run run in Git BASH.

I copied the example and it behaves like so

cmd

>

I press a

>> a

I press b

>> > ab

I press c

>> > a> abc
thejpster commented 2 years ago

It appears your terminal doesn't understand "\r" as "go back to start of line"

huntc commented 2 years ago

Is this one now ok to close given that it should be reasonable for a terminal to process return?