-
Notifications
You must be signed in to change notification settings - Fork 1
Customizing
samo_lego edited this page Nov 11, 2020
·
2 revisions
No worries, we've got you covered.
myConsole.username = "newUsername";
myConsole.hostname= "newHostname";
// Refreshing typer
myConsole.consoleTyper.innerText = myConsole.getUsername(myConsole);
myConsole.AVAILABLE_COMMANDS_MAP.clear();
myConsole.AVAILABLE_COMMANDS_MAP.set("help", "this.myHelpCommand");
myConsole.help = (self, args) => {
console.log(args);
self.writeLine("New help command!", "yellow");
}
async function clear() {
console.log(args);
self.writeLine("New clear command!", "yellow");
}