Resize terminal
terminal_resizeResize a terminal session by setting columns and/or rows; omit one to keep its current value, and update PTY plus emulator so programs get SIGWINCH.
Instructions
Change the terminal size. Both cols and rows are optional; omitting one preserves the current value. Resizes both the PTY and the emulator (so programs running inside see the change via SIGWINCH).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | New column count (1..1000). Omit to keep current cols. | |
| rows | No | New row count (1..1000). Omit to keep current rows. | |
| sessionId | Yes | Numeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids. |