MCPcopy Index your code
hub / github.com/nodejs/node / setPrompt

Method setPrompt

lib/internal/readline/interface.js:372–374  ·  view source on GitHub ↗

* Sets the prompt written to the output. * @param {string} prompt * @returns {void}

(prompt)

Source from the content-addressed store, hash-verified

370 * @returns {void}
371 */
372 setPrompt(prompt) {
373 this[kPrompt] = prompt;
374 }
375
376 /**
377 * Returns the current prompt used by `rl.prompt()`.

Callers 5

[kQuestion]Method · 0.95
[kOnLine]Method · 0.95
[kQuestionCancel]Method · 0.95
replFunction · 0.45
InterfaceConstructorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected