From 508c9833e39eac6f16a1ae49e55ce9fe2eae54c5 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 4 Nov 2016 16:24:52 -0700 Subject: [PATCH] Add Esc support to termion backend --- src/backend/termion.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/termion.rs b/src/backend/termion.rs index 83fdea9..8d6cfdf 100644 --- a/src/backend/termion.rs +++ b/src/backend/termion.rs @@ -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),