Parameters
Parameters
The machine where the terminal opens.
Initial terminal width in columns.
Initial terminal height in rows.
Shell to start inside the PTY.
Working directory for the shell.
Extra environment variables for the shell.
Wire protocol
| Direction | Frame | Payload |
|---|---|---|
| Client → server | Binary | Raw bytes written to the shell’s stdin (keystrokes, paste, etc.) |
| Client → server | Text (JSON) | {"cols": 100, "rows": 30} to resize the PTY |
| Server → client | Binary | Raw bytes from the shell’s stdout/stderr (ANSI escapes intact) |
| Server → client | Close | Shell exited or session expired |
