Theia API Documentation v1.65.0
    Preparing search index...

    Implements

    • IPty
    Index

    Constructors

    Properties

    cols: number = -1

    The column size in characters.

    handleFlowControl: boolean = false

    (EXPERIMENTAL) Whether to handle flow control. Useful to disable/re-enable flow control during runtime. Use this for binary data that is likely to contain the flowControlPause string by accident.

    onData: Event<string> = Event.None

    Adds an event listener for when a data event fires. This happens when data is returned from the pty.

    an IDisposable to stop listening.

    onExit: Event<{ exitCode: number; signal?: number }> = Event.None

    Adds an event listener for when an exit event fires. This happens when the pty exits.

    an IDisposable to stop listening.

    pid: number = -1

    The process ID of the outer process.

    process: string = ''

    The title of the active process.

    rows: number = -1

    The row size in characters.

    Methods

    • Clears the pty's internal representation of its buffer. This is a no-op unless on Windows/ConPTY. This is useful if the buffer is cleared on the frontend in order to synchronize state with the backend to avoid ConPTY possibly reprinting the screen.

      Returns void

    • Kills the pty.

      Parameters

      • Optionalsignal: string

        The signal to use, defaults to SIGHUP. This parameter is not supported on Windows.

      Returns void

      Will throw when signal is used on Windows.

    • Resizes the dimensions of the pty.

      Parameters

      • columns: number

        The number of columns to use.

      • rows: number

        The number of rows to use.

      Returns void