MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / colour

Function colour

python/pythonmonkey/builtin_modules/util.js:135–139  ·  view source on GitHub ↗
(colourCode, val)

Source from the content-addressed store, hash-verified

133/** Return String(val) surrounded by appropriate ANSI escape codes to change the console text colour. */
134// eslint-disable-next-line no-unused-vars
135function colour(colourCode, val)
136{
137 const esc=String.fromCharCode(27);
138 return `${esc}[${colourCode}m${val}${esc}[0m`;
139}
140
141let CIRCULAR_ERROR_MESSAGE;
142

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected