Bump to 1.0.7.

This commit is contained in:
ticki 2016-09-07 11:08:26 +02:00
parent 5ebda9866f
commit 2ff0916514
2 changed files with 7 additions and 8 deletions

View File

@ -1,10 +1,10 @@
[package]
name = "termion"
version = "1.0.6"
authors = ["Ticki <Ticki@users.noreply.github.com>"]
version = "1.0.7"
authors = ["ticki <Ticki@users.noreply.github.com>"]
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"]

View File

@ -143,7 +143,7 @@ where I: Iterator<Item = Result<u8, Error>>
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<Item = Result<u8, Error>>
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<Item = Result<u8, Error>>
};
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<Item = Result<u8, Error>>
v @ 23...24 => Event::Key(Key::F(v - 12)),
_ => return error,
}
}
},
_ => return error,
}
}
},
_ => return error,
}
}