Skip to content

Commit

Permalink
0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonPost committed Aug 10, 2022
1 parent 1fee5ff commit e6bd3dd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/event-read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn main() -> Result<()> {
stdout,
EnableBracketedPaste,
EnableFocusChange,
EnableMouseCapture
EnableMouseCapture,
PushKeyboardEnhancementFlags(
KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
| KeyboardEnhancementFlags::REPORT_ALL_KEYS_AS_ESCAPE_CODES
Expand Down
24 changes: 24 additions & 0 deletions report.json
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}
}
}

0 comments on commit e6bd3dd

Please sign in to comment.