Go to Latest
method Interface.prototype.getPrompt
import { Interface } from "https://dotland.deno.dev/std@0.145.0/node/readline.ts";

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

Returns

string

the current prompt string