Skip to main content
Go to Latest
class promises.Readline
Re-export
import { promises } from "https://deno.land/std@0.167.0/node/readline.ts";
const { Readline } = promises;

Constructors

new
Readline(stream, options?)

Methods

Clears the current line the cursor is on.

Clears the screen from the current position of the cursor down.

Sends all the pending actions to the associated stream and clears the internal list of pending actions.

cursorTo(x, y?)

Moves the cursor to the x and y coordinate on the given stream.

moveCursor(dx, dy)

Moves the cursor relative to its current location.

Clears the internal list of pending actions without sending it to the associated stream.