-
Notifications
You must be signed in to change notification settings - Fork 2
Home
samo_lego edited this page Jul 3, 2020
·
5 revisions
Let's assume
var myConsole = new WebCommander("myConsoleDiv");-
help- prints available commands into the console -
?- same ashelp
Those are created with every WebCommander object, but they act differently across terminals.
E.g. If you've declared mycmd in myConsole, typing help in myConsole will show it as available command,
but won't in myConsole2.
-
myConsole.writeLine("New Console Line Text", "color")- writes a new line to console,coloris any validcsscolor
-
hide- hides console from existence. (style.display = "none") -
clear- clears all mess you've created in console -
cd- changes directories across site -
pwd- prints "working directory" -
ping- prints your ping -
extend- extends console height -
shrink- opposite ofextend -
sudo- allows you to run superuser command -
su- switches users, defaults toroot
Those require superuser access, which is activated either by using sudo or su-ing to root user.
-
kill- kills the webpage -
exit- same askill