Module pty
Expand description
ConPTY that runs ssh and answers its startup cursor-position query.
Structsยง
- Client
Pty ๐ - A spawned SSH child and the PTY master it runs on.
Constantsยง
- DSR_
QUERY ๐ - Device Status Report query conhost sends at startup, blocking until answered.
- DSR_
REPLY ๐ - Cursor position report answering
DSR_QUERY: row 1, column 1.
Functionsยง
- console_
viewport_ ๐size - Return the size of the visible console window.
- scan_
and_ ๐answer_ dsr - Answer and strip every
DSR_QUERYin the PTY output. - spawn_
client_ ๐pty - Run
programwithargumentson a new PTY. - write_
to_ ๐master - Write
bytesto the PTY master, logging a failure.
Type Aliasesยง
- Shared
Writer ๐ - PTY master writer shared by every input source.