Bump to 1.0.7.
This commit is contained in:
parent
5ebda9866f
commit
2ff0916514
|
@ -1,10 +1,10 @@
|
||||||
[package]
|
[package]
|
||||||
name = "termion"
|
name = "termion"
|
||||||
version = "1.0.6"
|
version = "1.0.7"
|
||||||
authors = ["Ticki <Ticki@users.noreply.github.com>"]
|
authors = ["ticki <Ticki@users.noreply.github.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/crate/eudex"
|
documentation = "https://docs.rs/termion"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
keywords = ["tty", "color", "terminal", "password", "tui"]
|
keywords = ["tty", "color", "terminal", "password", "tui"]
|
||||||
exclude = ["target", "CHANGELOG.md", "image.png", "Cargo.lock"]
|
exclude = ["target", "CHANGELOG.md", "image.png", "Cargo.lock"]
|
||||||
|
|
|
@ -143,7 +143,7 @@ where I: Iterator<Item = Result<u8, Error>>
|
||||||
3 => MouseEvent::Release(cx, cy),
|
3 => MouseEvent::Release(cx, cy),
|
||||||
_ => return error,
|
_ => return error,
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
Some(Ok(b'<')) => {
|
Some(Ok(b'<')) => {
|
||||||
// xterm mouse encoding:
|
// xterm mouse encoding:
|
||||||
// ESC [ < Cb ; Cx ; Cy ; (M or m)
|
// 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::Press(button, cx, cy),
|
||||||
b'm' => MouseEvent::Release(cx, cy),
|
b'm' => MouseEvent::Release(cx, cy),
|
||||||
_ => return error,
|
_ => return error,
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
32 => MouseEvent::Hold(cx, cy),
|
32 => MouseEvent::Hold(cx, cy),
|
||||||
|
@ -185,7 +184,7 @@ where I: Iterator<Item = Result<u8, Error>>
|
||||||
};
|
};
|
||||||
|
|
||||||
Event::Mouse(event)
|
Event::Mouse(event)
|
||||||
}
|
},
|
||||||
Some(Ok(c @ b'0'...b'9')) => {
|
Some(Ok(c @ b'0'...b'9')) => {
|
||||||
// Numbered escape code.
|
// Numbered escape code.
|
||||||
let mut buf = Vec::new();
|
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)),
|
v @ 23...24 => Event::Key(Key::F(v - 12)),
|
||||||
_ => return error,
|
_ => return error,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
_ => return error,
|
_ => return error,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
_ => return error,
|
_ => return error,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue