dalance / termbg

A Rust library for terminal background color detection
Apache License 2.0
87 stars 8 forks source link

Update crossterm requirement from 0.19 to 0.25 #15

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 2 years ago

Updates the requirements on crossterm to permit the latest version.

Changelog

Sourced from crossterm's changelog.

Version 0.25.0

BREAKING: Copy trait is removed from Event, you can keep it by removing the "bracked-paste" feature flag. However this flag might be standardized in the future. 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.
  • Consistency and better documentation on mouse cursor operations (BREAKING CHANGE).
    • MoveTo, MoveToColumn, MoveToRow are 0-based. (left top most cell is 0,0). Moving like this is absolute
    • MoveToNextLine, MoveToPreviousLine, MoveUp, MoveDown, MoveRight, MoveLeft are 1-based,. Moving like this is relative. Moving 1 left means moving 1 left. Moving 0 to the left is not possible, wikipedia states that most terminals will just default to 1.
  • terminal::size returns error when previously it returned (0,0).
  • Remove println from serialisation code.
  • Fix mouse up for middle and right buttons.
  • Fix escape codes on Git-Bash + Windows Terminal / Alacritty / WezTerm.
  • Add support for cursor keys in application mode.

Version 0.23.2

  • Update signal-hook and mio to version 0.8.

Version 0.23.1

  • Fix control key parsing problem.

Version 0.23

  • Update dependencies.
  • Add 0 check for all cursor functions to prevent undefined behaviour.
  • Add CSIu key parsing for unix.
  • Improve control character window key parsing supporting (e.g. CTRL [ and ])
  • Update library to 2021 edition.

Version 0.22.1

  • Update yanked version crossterm-winapi and move to crossterm-winapi 0.9.0.
  • Changed panic to error when calling disable-mouse capture without setting it first.
  • Update bitflags dependency.

Version 0.22

  • Fix serde Color serialisation/deserialization inconsistency.
  • Update crossterm-winapi 0.8.1 to fix panic for certain mouse events

... (truncated)

Commits


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #16.