返回:<string> 当前提示字符串
¥Returns: <string> the current prompt string
rl.getPrompt() 方法返回 rl.prompt() 使用的当前提示。
rl.getPrompt()
rl.prompt()
¥The rl.getPrompt() method returns the current prompt used by rl.prompt().