Run arbitrary processes inside pseudo-terminals (PTY).

Note: a PTY is not a shell process (bash/pwsh/cmd...)

Hierarchy (view full)

Constructors

Properties

_delayedResizer: undefined | DelayedResizer
_exitCode: undefined | number
_killed: boolean = false
closeEmitter: Emitter<IProcessExitEvent> = ...
errorEmitter: Emitter<ProcessErrorEvent> = ...
errorStream: DevNullStream = ...

The stderr stream.

exitEmitter: Emitter<IProcessExitEvent> = ...
id: number
initialCwd: string
inputStream: Writable

The stdin stream.

logger: ILogger
outputStream: MultiRingBufferReadableStream = ...

The stdout stream.

processManager: ManagedProcessManager
ringBuffer: MultiRingBuffer
startEmitter: Emitter<IProcessStartEvent> = ...
terminal: undefined | IPty

Accessors

Methods

  • Helper for the constructor to attempt to create the pseudo-terminal encapsulating the shell process.

    Parameters

    Returns {
        inputStream: Writable;
        terminal: undefined | IPty;
    }

    the terminal PTY and a stream by which it may be sent input

    • inputStream: Writable
    • terminal: undefined | IPty