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

Function CSI

lib/internal/readline/utils.js:19–27  ·  view source on GitHub ↗
(strings, ...args)

Source from the content-addressed store, hash-verified

17const kSubstringSearch = Symbol('kSubstringSearch');
18
19function CSI(strings, ...args) {
20 let ret = `${kEscape}[`;
21 for (let n = 0; n < strings.length; n++) {
22 ret += strings[n];
23 if (n < args.length)
24 ret += args[n];
25 }
26 return ret;
27}
28
29CSI.kEscape = kEscape;
30CSI.kClearToLineBeginning = CSI`1K`;

Callers 6

cursorToFunction · 0.85
moveCursorFunction · 0.85
cursorToMethod · 0.85
moveCursorMethod · 0.85
utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected