Add @gycos to the author list.
This commit is contained in:
parent
8c82c461f9
commit
2f008188e3
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "termion"
|
name = "termion"
|
||||||
version = "1.1.2"
|
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."
|
description = "A bindless library for manipulating terminals."
|
||||||
repository = "https://github.com/ticki/termion"
|
repository = "https://github.com/ticki/termion"
|
||||||
documentation = "https://docs.rs/termion"
|
documentation = "https://docs.rs/termion"
|
||||||
|
|
14
src/event.rs
14
src/event.rs
|
@ -226,19 +226,19 @@ where I: Iterator<Item = Result<u8, Error>>
|
||||||
// Special key code.
|
// Special key code.
|
||||||
b'~' => {
|
b'~' => {
|
||||||
let str_buf = String::from_utf8(buf).unwrap();
|
let str_buf = String::from_utf8(buf).unwrap();
|
||||||
|
|
||||||
// This CSI sequence can be a list of
|
// This CSI sequence can be a list of semicolon-separated
|
||||||
// semicolon-separated numbers.
|
// numbers.
|
||||||
let nums: Vec<u8> = str_buf.split(';')
|
let nums: Vec<u8> = str_buf.split(';')
|
||||||
.map(|n| n.parse().unwrap())
|
.map(|n| n.parse().unwrap())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if nums.is_empty() {
|
if nums.is_empty() {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle multiple values for key modififiers
|
// TODO: handle multiple values for key modififiers (ex: values
|
||||||
// (ex: values [3, 2] means Shift+Delete)
|
// [3, 2] means Shift+Delete)
|
||||||
match nums[0] {
|
match nums[0] {
|
||||||
1 | 7 => Event::Key(Key::Home),
|
1 | 7 => Event::Key(Key::Home),
|
||||||
2 => Event::Key(Key::Insert),
|
2 => Event::Key(Key::Insert),
|
||||||
|
|
Loading…
Reference in New Issue