mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add Esc support to termion backend
This commit is contained in:
parent
ce009d0e5f
commit
508c9833e3
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user