diff --git a/Cargo.toml b/Cargo.toml index 6ff1591..927264f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "termion" -version = "1.0.6" -authors = ["Ticki "] +version = "1.0.7" +authors = ["ticki "] description = "A bindless library for manipulating terminals." repository = "https://github.com/ticki/termion" -documentation = "https://docs.rs/crate/eudex" +documentation = "https://docs.rs/termion" license = "MIT" keywords = ["tty", "color", "terminal", "password", "tui"] exclude = ["target", "CHANGELOG.md", "image.png", "Cargo.lock"] diff --git a/src/event.rs b/src/event.rs index 4823439..5760228 100644 --- a/src/event.rs +++ b/src/event.rs @@ -143,7 +143,7 @@ where I: Iterator> 3 => MouseEvent::Release(cx, cy), _ => return error, }) - } + }, Some(Ok(b'<')) => { // xterm mouse encoding: // ESC [ < Cb ; Cx ; Cy ; (M or m) @@ -177,7 +177,6 @@ where I: Iterator> b'M' => MouseEvent::Press(button, cx, cy), b'm' => MouseEvent::Release(cx, cy), _ => return error, - } } 32 => MouseEvent::Hold(cx, cy), @@ -185,7 +184,7 @@ where I: Iterator> }; Event::Mouse(event) - } + }, Some(Ok(c @ b'0'...b'9')) => { // Numbered escape code. let mut buf = Vec::new(); @@ -238,10 +237,10 @@ where I: Iterator> v @ 23...24 => Event::Key(Key::F(v - 12)), _ => return error, } - } + }, _ => return error, } - } + }, _ => return error, } }