dalance / termbg

A Rust library for terminal background color detection
Apache License 2.0
80 stars 5 forks source link

Update crossterm requirement from 0.19 to 0.26 #16

Closed dependabot[bot] closed 5 months ago

dependabot[bot] commented 1 year ago

Updates the requirements on crossterm to permit the latest version.

Release notes

Sourced from crossterm's releases.

0.26.0

Added ⭐

  • Add SetCursorStyle to set the cursor appearance and visibility. (#742)
  • Add key release event for windows. (#745)
  • Add a function to check if the kitty keyboard enhancement protocol is available. (#732)
  • Add filedescriptors poll in order to move away from mio in the future (can be used via use-dev-tty). (#735)

Fixed 🐛

  • Improved F1-F4 handling for kitty keyboard protocol. (#736)
  • Improved parsing of event types/modifiers with certain keys for kitty protocol. (#716)

Breaking ⚠️

  • Remove SetCursorShape in vavour of SetCursorStyle. (#742)
  • Make Windows resize event match terminal::size (#714)

Contributors

@​pianohacker , @​AhoyISki , @​Cl00e9ment , @​yyogo , @​the-mikedavis , @​djarb , @​Piturnah , @​MitMaro , @​Yusuto , @​generic-user1 , @​baldoalessandro , @​CenTdemeern1 , @​Blatko1 , @​aaarkid @​basilkohler , @​TimonPost

Changelog

Sourced from crossterm's changelog.

Version 0.26.0

Added ⭐

  • Add SetCursorStyle to set the cursor apearance and visibility. (#742)
  • Add key release event for windows. (#745)
  • Add a function to check if kitty keyboard enhancement protocol is availible. (#732)
  • Add filedescriptors poll in order to move away from mio in the future (can be used via use-dev-tty). (#735)

Fixed 🐛

  • Improved F1-F4 handling for kitty keyboard protocol. (#736)
  • Improved parsing of event types/modifiers with certain keys for kitty protocol. (#716)

Breaking ⚠️

  • Remove SetCursorShape in vavour of SetCursorStyle. (#742)
  • Make Windows resize event match terminal::size (#714)

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.

... (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)
dalance commented 5 months ago

@dependabot recreate

dependabot[bot] commented 5 months ago

Looks like crossterm is up-to-date now, so this is no longer needed.