Last active
May 29, 2017 18:58
-
-
Save daboross/f12f66ad1696c002e9a4a9b3cabe175f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match c.unwrap() { | |
Key::Esc => break, | |
Key::Char(c) => input.push(c), | |
Key::Backspace if !input.is_empty() => { | |
input.remove(input.len()); | |
} | |
_ => {}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment