added mouse input
The event system has been reworked to allow the detection of mouse events as well as key presses. Xterm, rxvt and X10 emulated escape codes are supported, they are enabled and disabled by sending the right escape codes when creating a RawTerminal. To allow for byte manipulation, which was necessary to implement those features, the backend iterator has been changed from chars() to bytes() (with specific treatment of unicode sequences), making the whole crate not require nightly rustc.
parent
12c0ad04
No related branches found
No related tags found
Showing
- Cargo.toml 0 additions, 4 deletionsCargo.toml
- README.md 1 addition, 14 deletionsREADME.md
- examples/keys.rs 0 additions, 7 deletionsexamples/keys.rs
- examples/test.rs 35 additions, 0 deletionsexamples/test.rs
- src/event.rs 277 additions, 0 deletionssrc/event.rs
- src/input.rs 41 additions, 113 deletionssrc/input.rs
- src/lib.rs 4 additions, 6 deletionssrc/lib.rs
- src/raw.rs 14 additions, 3 deletionssrc/raw.rs
Loading
Please register or sign in to comment