Go to Latest
class Interface
import { Interface } from "https://dotland.deno.dev/std@0.177.0/node/internal/readline/interface.mjs";

Constructors

new
Interface(
input,
output,
completer,
terminal,
)

Properties

readonly
columns

Methods

Closes the readline.Interface instance.

Returns the real position of the cursor in relation to the input prompt + string.

Returns the current prompt used by rl.prompt().

Pauses the input stream.

prompt(preserveCursor)

Writes the configured prompt to a new line in output.

Resumes the input stream if paused.

setPrompt(prompt)

Sets the prompt written to the output.

write(d, key)

Writes either data or a key sequence identified by key to the output.

[kOnLine](line)
[kQuestion](query, cb)
[kTabComplete](lastKeypressWasTab)
[kTabCompleter](lastKeypressWasTab, unnamed 1)
[kTtyWrite](s, key)
[kWriteToOutput](stringToWrite)

Creates an AsyncIterator object that iterates through each line in the input stream as a string.