# Interface ReadLineOptions

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;
}

- Defined in node_modules/@types/node/readline.d.ts:333

#####
Index

### Properties

input
output?
completer?
terminal?
history?
historySize?
prompt?
crlfDelay?
removeHistoryDuplicates?
escapeCodeTimeout?
tabSize?

##
Properties

### input

input: ReadableStream

- Defined in node_modules/@types/node/readline.d.ts:334

### `Optional` output

output?: WritableStream

- Defined in node_modules/@types/node/readline.d.ts:335

### `Optional` completer

completer?: Completer | AsyncCompleter

- Defined in node_modules/@types/node/readline.d.ts:336

### `Optional` terminal

terminal?: boolean

- Defined in node_modules/@types/node/readline.d.ts:337

### `Optional` history

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.

#### Default

    []

- Defined in node_modules/@types/node/readline.d.ts:344

### `Optional` historySize

historySize?: number

- Defined in node_modules/@types/node/readline.d.ts:345

### `Optional` prompt

prompt?: string

- Defined in node_modules/@types/node/readline.d.ts:346

### `Optional` crlfDelay

crlfDelay?: number

- Defined in node_modules/@types/node/readline.d.ts:347

### `Optional` removeHistoryDuplicates

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.

#### Default

    false

- Defined in node_modules/@types/node/readline.d.ts:354

### `Optional` escapeCodeTimeout

escapeCodeTimeout?: number

- Defined in node_modules/@types/node/readline.d.ts:355

### `Optional` tabSize

tabSize?: number

- Defined in node_modules/@types/node/readline.d.ts:356