TerminalCallback

Type Alias TerminalCallback 

Source
pub type TerminalCallback = extern "C" fn(*mut Terminal, u64, u64, u64, u64);
Expand description

Type for terminal callback The first argument is Type, which corresponds to CallbackTypeCallbackType

  • DecSequence
    • ValueCount - Number of values in the array Values
    • Values - Array of values in the DEC Sequence
    • Final - The final character in the DEC Sequence
  • Bell
    • unused1
    • unused2
    • unused3
  • DECPrivateID
    • unused1
    • unused2
    • unused3
  • StatusReport
    • unused1
    • unused2
    • unused3
  • CursorPositionReport
    • X - The X position at the time the report was requested
    • Y - The Y position at the time the report was requested
    • unused3
  • KeyboardLEDUpdate
    • LedState - What to set (possible values below)
      • 0 - Clear all LEDs
      • 1 - Set Scroll Lock
      • 2 - Set Num Lock
      • 3 - Set Caps Lock LED
    • unused2
    • unused3
  • SwitchSequence
    • ValueCount - Number of values in the array Values
    • Values - Array of values in the Switch Sequence
    • Final - The final character in the Switch Sequence
  • LinuxEscapeSequence
    • ValueCount - Number of values in the array Values
    • Values - Array of values in the Sequence