Skip to main content

Module pty

Module pty 

Expand description

ConPTY that runs ssh and answers its startup cursor-position query.

Structsยง

ClientPty ๐Ÿ”’
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_QUERY in the PTY output.
spawn_client_pty ๐Ÿ”’
Run program with arguments on a new PTY.
write_to_master ๐Ÿ”’
Write bytes to the PTY master, logging a failure.

Type Aliasesยง

SharedWriter ๐Ÿ”’
PTY master writer shared by every input source.