MCPcopy Create free account
hub / github.com/Cu-chi/cuchi_computer / ClearConsole

Function ClearConsole

nui/scripts/script.js:974–979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

972 * Clears console output
973 */
974const ClearConsole = () => {
975 document.getElementById("console-text").innerHTML = "<div class='console-line'><p>" + ConsolePrefix() + "</p><input id='console-input' type='text'></div>";
976 let consoleInput = document.getElementById("console-input");
977 consoleInput.focus();
978 consoleInput.onkeydown = (e) => OnConsoleCommand(e, consoleInput);
979};
980
981/**
982 * Adds an information in the application informations

Callers 2

OpenAppFunction · 0.85
commands.jsFile · 0.85

Calls 2

ConsolePrefixFunction · 0.85
OnConsoleCommandFunction · 0.85

Tested by

no test coverage detected