PtyConnector
TerminalConnector backed by a local PTY process.
This connector owns PTY reader and watcher threads. It only moves bytes and lifecycle events between the PTY process and a connector listener; parser, core, cursor, attribute, and input-encoder behavior are owned by terminal-session and lower layers.
Parameters
process
the underlying PTY process.
readBufferSize
size of the read buffer in bytes.
readerThreadName
name for the daemon PTY stdout reader thread.
watcherThreadName
name for the daemon process exit watcher thread.
Properties
Functions
Link copied to clipboard
Reads the Unix foreground process-group leader or uses the newest live descendant on Windows. The Windows result is a heuristic and may identify a background child. Returns only a basename, or null on closure/unavailable metadata; applications inside SSH or WSL are not inspected.
Link copied to clipboard