Skip to main content
Go to Latest
method Interface.prototype.getPrompt
import { Interface } from "https://deno.land/std@0.177.0/node/_readline.d.ts";

The rl.getPrompt() method returns the current prompt used by rl.prompt().

Returns

string

the current prompt string