From e6bd3dd884364731744c4d74e92854d0d69e8b41 Mon Sep 17 00:00:00 2001 From: Timon Date: Wed, 10 Aug 2022 09:36:28 +0200 Subject: [PATCH] 0.25 --- CHANGELOG.md | 18 ++++++++++++++++++ Cargo.toml | 2 +- examples/event-read.rs | 2 +- report.json | 24 ++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 report.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7b234ca..cf985f942 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ + +# Version 0.25.0 +BREAKING: `Copy` trait is removed from `Event`, however you can keep it, remove the "bracked-paste" feature flag! +We removed the `Copy` from `Event` because the new `Paste` event, which contains a pasted string into the terminal, which is a non-copy string. + +- Add ability to paste a string in into the terminal and fetch the pasted string via events (see `Event::Paste` and `EnableBracketedPaste `). +- Add support for functional key codes from kitty keyboard protocol. Try out by `PushKeyboardEnhancementFlags`. This protocol allows for: + - See: https://sw.kovidgoyal.net/kitty/keyboard-protocol/#modifiers + - Press, Repeat, Release event kinds. + - SUPER, HYPER, META modifiers. + - Media keycodes + - Right/left SHIFT, Control, Alt, Super, Hyper, Meta + - IsoLevel3Shift, IsoLevel5Shift + - Capslock, scroll lock, numlock + - Printscreen, pauze, menue, keyboard begin. +- Create `SetStyle` command to allow setting various styling in one command. +- Terminal Focus events (see `Event::FocusGained` and `Event::FocusLost`) + # Version 0.24.0 - Add DoubleUnderlined, Undercurled, Underdots the text, Underdotted, Underdashes, Underdashed attributes and allow coloring their foreground / background color. - Fix windows unicode character parsing, this fixed various key combinations and support typing unicode characters. diff --git a/Cargo.toml b/Cargo.toml index 197b22a16..56558baef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crossterm" -version = "0.24.0" +version = "0.25.0" authors = ["T. Post"] description = "A crossplatform terminal library for manipulating terminals." repository = "https://github.com/crossterm-rs/crossterm" diff --git a/examples/event-read.rs b/examples/event-read.rs index 74a9b6b0c..a111fd8e5 100644 --- a/examples/event-read.rs +++ b/examples/event-read.rs @@ -73,7 +73,7 @@ fn main() -> Result<()> { stdout, EnableBracketedPaste, EnableFocusChange, - EnableMouseCapture + EnableMouseCapture, PushKeyboardEnhancementFlags( KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES | KeyboardEnhancementFlags::REPORT_ALL_KEYS_AS_ESCAPE_CODES diff --git a/report.json b/report.json new file mode 100644 index 000000000..a308b0ef6 --- /dev/null +++ b/report.json @@ -0,0 +1,24 @@ +{ + "version": 0, + "root_name": "crossterm", + "workspace_crates": { + "crossterm": { + "full_path": "E:\\programming\\crossterm\\Cargo.toml", + "dependencies": { + "serde": { + "original_features": [ + "derive", + "serde_derive", + "std" + ], + "successfully_removed_features": [ + "derive", + "std", + "serde_derive" + ], + "unsuccessfully_removed_features": [] + } + } + } + } +} \ No newline at end of file