Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface ReadLineOptions
Re-export
import { type ReadLineOptions } from "https://deno.land/std@0.170.0/node/_readline.d.ts";

Properties

optional
output: WritableStream | undefined
optional
completer: Completer | AsyncCompleter | undefined
optional
terminal: boolean | undefined
optional
history: string[] | undefined

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.

optional
historySize: number | undefined
optional
prompt: string | undefined
optional
crlfDelay: number | undefined
optional
removeHistoryDuplicates: boolean | undefined

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

optional
escapeCodeTimeout: number | undefined
optional
tabSize: number | undefined