Skip to main content
method Interface.prototype.setPrompt
Interface.prototype.setPrompt(prompt: string): void
Deprecated

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

Parameters

prompt: string

Return Type

void
Back to top