Expand description
Scarlet-private, OS-agnostic control opcodes for TTY devices. These are stable only within Scarlet and must be mapped by ABI adapters.
Constants§
- SCTL_
TTY_ FLUSH_ INPUT - Flush input buffer (arg ignored)
- SCTL_
TTY_ GET_ CANONICAL - SCTL_
TTY_ GET_ DEBUG - Get debug logging state (ret=0/1)
- SCTL_
TTY_ GET_ ECHO - SCTL_
TTY_ GET_ KBMODE - Get keyboard mode (0=XLATE, 1=MEDIUMRAW, 2=RAW)
- SCTL_
TTY_ GET_ READ_ POLICY - Get read policy in the same packed format as SET_READ_POLICY
- SCTL_
TTY_ GET_ WINSIZE - ret = (cols<<16 | rows)
- SCTL_
TTY_ SET_ CANONICAL - SCTL_
TTY_ SET_ DEBUG - Enable/disable debug logging of received bytes (arg!=0 enable)
- SCTL_
TTY_ SET_ ECHO - Magic ‘ST’ (0x53, 0x54) followed by sequential IDs to avoid collisions.
- SCTL_
TTY_ SET_ KBMODE - Set keyboard mode (0=XLATE, 1=MEDIUMRAW, 2=RAW)
- SCTL_
TTY_ SET_ READ_ POLICY - Set read policy as a neutral abstraction: arg = ((timeout_ms as u32) << 16) | (min_ready_bytes as u32)
- SCTL_
TTY_ SET_ WINSIZE - arg = (cols<<16 | rows)