Interface.prototype.setPrompt - Node documentation
method Interface.prototype.setPrompt

Usage in Deno

import { Interface } from "node:readline";
Interface.prototype.setPrompt(prompt: string): void

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

Parameters

prompt: string

Return Type

void