MCPcopy Create free account
hub / github.com/GNOME/gjs / colorCode

Function colorCode

modules/script/_bootstrap/debugger.js:361–366  ·  view source on GitHub ↗
(codeNumber)

Source from the content-addressed store, hash-verified

359 -option : option name. Allowed options are: line number`;
360
361function colorCode(codeNumber) {
362 if (options.colors === true)
363 return [`\x1b[${codeNumber}m`, '\x1b[0m'];
364 else
365 return ['', ''];
366}
367function setCommand(rest) {
368 var space = rest.indexOf(' ');
369 if (space === -1) {

Callers 1

printSurroundingLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected