From c1e84f71857fd0bf3e77af4c820ccacb1da72ce7 Mon Sep 17 00:00:00 2001 From: Timon Date: Sat, 23 May 2020 13:29:56 +0200 Subject: [PATCH] 0.17.5 (#438) --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- README.md | 18 +++++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dcdbf4..075f8b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 9391c17..50f0a4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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, ...) diff --git a/README.md b/README.md index b776435..c05fb31 100644 --- a/README.md +++ b/README.md @@ -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`.| +### 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/)