Add @gycos to the author list.

This commit is contained in:
ticki 2016-11-06 10:26:45 +01:00
parent 8c82c461f9
commit 2f008188e3
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "termion"
version = "1.1.2"
authors = ["ticki <Ticki@users.noreply.github.com>"]
authors = ["ticki <Ticki@users.noreply.github.com>", "gycos <alexandre.bury@gmail.com>"]
description = "A bindless library for manipulating terminals."
repository = "https://github.com/ticki/termion"
documentation = "https://docs.rs/termion"

View File

@ -226,19 +226,19 @@ where I: Iterator<Item = Result<u8, Error>>
// Special key code.
b'~' => {
let str_buf = String::from_utf8(buf).unwrap();
// This CSI sequence can be a list of
// semicolon-separated numbers.
// This CSI sequence can be a list of semicolon-separated
// numbers.
let nums: Vec<u8> = str_buf.split(';')
.map(|n| n.parse().unwrap())
.collect();
if nums.is_empty() {
return error;
}
// TODO: handle multiple values for key modififiers
// (ex: values [3, 2] means Shift+Delete)
// TODO: handle multiple values for key modififiers (ex: values
// [3, 2] means Shift+Delete)
match nums[0] {
1 | 7 => Event::Key(Key::Home),
2 => Event::Key(Key::Insert),