Skip to content

Duplicated key input when running examples on Windows #132

@fdncred

Description

@fdncred

Describe the bug
I'm trying the examples and getting odd behavior that prevents the examples from working properly.

To Reproduce
Steps to reproduce the behavior:

  1. Below you can see how I compiled an ran.
  2. I did not hit any key after compilation and it automatically fills in "No" for the first answer.
  3. I try to type y on the next question and what prints to the screen is yy.
  4. Any example that requires typing input comes out as doubled for each key you type.
cargo r --example confirm
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s
     Running `c:\cartar\debug\examples\confirm.exe`
> Do you live in Brazil? No
Your answer: false
? Do you want to move to another country? yy

Expected behavior
The keystrokes printed to the screen match what I type.

Desktop (please complete the following information):

  • OS: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions