Add Esc support to termion backend

This commit is contained in:
Alexandre Bury 2016-11-04 16:24:52 -07:00
parent ce009d0e5f
commit 508c9833e3

View File

@ -154,6 +154,7 @@ impl backend::Backend for Concrete {
// TODO: parse input
if let Some(key) = ::std::io::stdin().keys().next() {
match key.unwrap() {
TKey::Esc => Event::Key(Key::Esc),
TKey::Backspace => Event::Key(Key::Backspace),
TKey::Left => Event::Key(Key::Left),
TKey::Right => Event::Key(Key::Right),