crossterm v0.25.0 Release Notes

  • ๐Ÿ’ฅ 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)