stty
Inspect terminal device settings (baud rate, line discipline, control characters). Modify settings only when change permission is enabled. Use to query terminal state before dependent operations.
Instructions
Inspect or modify terminal device settings (baud rate, line discipline, control characters). Can change terminal behavior if --allow_change is enabled; defaults to read-only inspection. Returns JSON with terminal configuration. Use to query terminal state before operations that depend on it. Not for simple TTY detection — use 'tty' to check if stdin is a terminal. See also 'tty'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_change | No | Allow applying supported terminal changes. | |
| device | No | Terminal device to inspect or change. | |
| dry_run | No | Report planned settings without changing the terminal. | |
| raw | No | Write a compact status line without a JSON envelope. | |
| settings | No | Settings such as raw, sane, echo, or -echo. |