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.
method Interface.prototype.pause
import { Interface } from "https://deno.land/std@0.170.0/node/_readline.d.ts";

The rl.pause() method pauses the input stream, allowing it to be resumed later if necessary.

Calling rl.pause() does not immediately pause other events (including'line') from being emitted by the readline.Interface instance.