parent
7401830c4f
commit
bd9e4eb8e1
|
@ -146,6 +146,10 @@ fn parse_csi<I>(iter: &mut I) -> Option<Event>
|
||||||
where I: Iterator<Item = Result<u8, Error>>
|
where I: Iterator<Item = Result<u8, Error>>
|
||||||
{
|
{
|
||||||
Some(match iter.next() {
|
Some(match iter.next() {
|
||||||
|
Some(Ok(b'[')) => match iter.next() {
|
||||||
|
Some(Ok(val @ b'A'...b'E')) => Event::Key(Key::F(1 + val - b'A')),
|
||||||
|
_ => return None,
|
||||||
|
},
|
||||||
Some(Ok(b'D')) => Event::Key(Key::Left),
|
Some(Ok(b'D')) => Event::Key(Key::Left),
|
||||||
Some(Ok(b'C')) => Event::Key(Key::Right),
|
Some(Ok(b'C')) => Event::Key(Key::Right),
|
||||||
Some(Ok(b'A')) => Event::Key(Key::Up),
|
Some(Ok(b'A')) => Event::Key(Key::Up),
|
||||||
|
|
Loading…
Reference in New Issue