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.
class Readline
Re-export
import { Readline } from "https://deno.land/std@0.160.0/node/readline/promises.ts";

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.