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

Function clearPreview

lib/internal/repl/utils.js:150–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 // Simple terminals can't handle previews.
149 if (process.env.TERM === 'dumb' || !active) {
150 return { showPreview() {}, clearPreview() {} };
151 }
152
153 let inputPreview = null;

Callers 1

constructorMethod · 0.85

Calls 7

getPreviewPosFunction · 0.85
moveCursorFunction · 0.85
clearLineFunction · 0.85
cursorToFunction · 0.85
clearScreenDownFunction · 0.85
isCursorAtInputEndFunction · 0.85
getPromptMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…