Scoop API

scoop:scoop.terminal:0.1.0

scoop.terminal.event

API

  • object DisableBracketedPaste

    Stops bracketed-paste reporting.

  • object DisableFocusChange

    Stops focus-change reporting.

  • object DisableMouseCapture

    Disables the mouse reporting modes enabled by this library.

  • object EnableBracketedPaste

    Requests bracketed-paste begin/end delimiters around pasted text.

  • object EnableFocusChange

    Requests focus-gained and focus-lost reports.

  • object EnableMouseCapture

    Enables the supported mouse reporting modes, including SGR coordinate reports.

  • enum Event

    A user-facing keyboard, mouse, focus, bracketed-paste, or terminal-resize event.

  • enum KeyCode

    A logical key, Unicode scalar, function key, media key, or separately reported modifier key. Physical-key information depends on the active terminal protocol.

  • struct KeyEvent

    A logical key together with modifiers, press/repeat/release kind, and lock/keypad state.

  • enum KeyEventKind

    Distinguishes initial key press, auto-repeat, and release when the protocol reports them.

  • struct KeyEventState

    An immutable bit set of additional lock/keypad state.

  • enum KeyModifier

    A modifier active while a key or mouse event was generated.

  • struct KeyModifiers

    An immutable bit set of active key modifiers.

  • enum KeyState

    Additional lock and keypad state reported by an enhanced keyboard protocol.

  • enum KeyboardEnhancement

    A keyboard-protocol capability that can be requested from supporting terminals.

  • struct KeyboardEnhancementFlags

    An immutable bit set of requested or reported keyboard enhancements.

  • enum MediaKeyCode

    Media playback, track, recording, and volume controls reported as distinct keys.

  • enum ModifierKeyCode

    Left/right modifier keys and ISO level-shift keys reported independently by enhanced keyboard protocols.

  • enum MouseButton

    The mouse button associated with a button or drag event.

  • struct MouseEvent

    A mouse event with zero-based cell coordinates and active key modifiers.

  • enum MouseEventKind

    Button transitions, drag/motion, and wheel directions reported by the terminal mouse protocol.

  • object PopKeyboardEnhancementFlags

    Restores the previous enhanced-keyboard flags from the terminal's stack.

  • struct PushKeyboardEnhancementFlags

    Pushes the selected enhanced-keyboard flags onto the terminal's protocol stack.

  • class TerminalInputException

    Reports malformed terminal input that cannot be delivered as an ordinary event.