Interface StdioInputStream

Implemented by entities from which data can be read.

interface StdioInputStream {
    isTerminal: boolean;
    type: StdioType;
    read(buf: Uint8Array): Promise<number>;
    setRawMode(enable: boolean): void;
}

Hierarchy (view full)

Properties

Methods

Properties

isTerminal: boolean
type: StdioType

Methods

  • Reads data into the given buffer. Resolves to the number of read bytes or null for EOF.

    Parameters

    • buf: Uint8Array

      Buffer to read data into.

    Returns Promise<number>

  • Parameters

    • enable: boolean

    Returns void