getPrompt

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

Since

v15.3.0, v14.17.0

Return

the current prompt string