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

The rl.setPrompt() method sets the prompt that will be written to outputwhenever rl.prompt() is called.

Parameters

prompt: string