interface ReadLineOptions {
    input: ReadableStream;
    output?: WritableStream;
    completer?: Completer | AsyncCompleter;
    terminal?: boolean;
    history?: string[];
    historySize?: number;
    prompt?: string;
    crlfDelay?: number;
    removeHistoryDuplicates?: boolean;
    escapeCodeTimeout?: number;
    tabSize?: number;
}

Properties

terminal?: boolean
history?: string[]

Initial list of history lines. This option makes sense only if terminal is set to true by the user or by an internal output check, otherwise the history caching mechanism is not initialized at all.

[]
historySize?: number
prompt?: string
crlfDelay?: number
removeHistoryDuplicates?: boolean

If true, when a new input line added to the history list duplicates an older one, this removes the older line from the list.

false
escapeCodeTimeout?: number
tabSize?: number