This commit is contained in:
Timon 2020-05-23 13:29:56 +02:00 committed by GitHub
parent a0b737566d
commit c1e84f7185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,7 @@
# Version 0.17.5
- Improved support of keymodifier for linux, arrow keys, function keys, home keys etc.
- Add `SetTitle` command to change the terminal title.
# Version 0.17.4
- Add macros for `Colorize` and `Styler` impls, add an impl for `String`
- Add shift modifier to uppercase char events on unix

View File

@ -1,6 +1,6 @@
[package]
name = "crossterm"
version = "0.17.4"
version = "0.17.5"
authors = ["T. Post"]
description = "An crossplatform terminal library for manipulating terminals."
repository = "https://github.com/crossterm-rs/crossterm"
@ -55,7 +55,7 @@ crossterm_winapi = "0.6.1"
[target.'cfg(unix)'.dependencies]
libc = "0.2"
mio = "0.6"
signal-hook = { version = "0.1.13", features = ["mio-support"] }
signal-hook = { version = "0.1.15", features = ["mio-support"] }
#
# Dev dependencies (examples, ...)

View File

@ -46,6 +46,7 @@ see [Tested Terminals](#tested-terminals) for more info).
- Exit current process
- Alternate screen
- Raw screen
- Set terminal title
- Event
- Input Events
- Mouse Events (press, release, position, button, drag)
@ -133,9 +134,24 @@ features = ["event-stream"]
```
| Feature | Description |
| :-- | :-- |
| :----- | :----- |
| `event-stream` | `futures::Stream` producing `Result<Event>`.|
### Dependency Justification
| Dependency | Used for | Included |
| :----- | :----- | :-----
| `bitflags` | `KeyModifiers`, those are differ based on input.| always
| `lazy_static` | original console color, original terminal mode, saved cursor position, supports ANSI on windows, single event reader per application.| always
| `parking_lot` | used for an RW LOCK. | always
| `libc` | UNIX terminal_size/raw modes/set_title and several other lowlevel functionality. | UNIX only
| `Mio` | event readiness polling, waking up poller | UNIX only
| `signal-hook`| signalhook is used to handle terminal resize SIGNAL with Mio. | UNIX only
| `winapi`| Used for low-level windows system calls which ANSI codes can't replace| windows only
| `futures`| Can be used to for async stream of events | only with a feature flag
| `serve`| Se/dese/realizing of events | only with a feature flag
### Other Resources
- [API documentation](https://docs.rs/crossterm/)