Skip to content

Instantly share code, notes, and snippets.

@Shadoka

Shadoka/main.rs Secret

Created February 15, 2020 23:45
Show Gist options
  • Save Shadoka/63b282739fb2ccc7d7b8f3c88774b42a to your computer and use it in GitHub Desktop.
Save Shadoka/63b282739fb2ccc7d7b8f3c88774b42a to your computer and use it in GitHub Desktop.
reproducable read_key bug
fn main() {
let term = Term::stdout();
while match term.read_key().unwrap() {
Key::Backspace => {
true
},
_ => false
} {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment