Terminal
The terminal is like a display but more like a console you can write to, Instead of effects, it uses via GUI.
Functions
send
Terminal.send( msg )
Sends a message to the terminal
Arguments:
- msg [ string ] The message to send
clear
Terminal.clear()
Clears all data.
clearInputHistory
Terminal.clearInputHistory()
Clears the user's input history
receivedInputs
Terminal.receivedInputs()
Returns true if there are available inputs.
Returns:
- [ boolean ] If true, then there are inputs you can read from.
getInput
Terminal.getInput()
Gets the latest user input
Note:
Please use Terminal.receivedInputs()
to check if there's something to get! If there are none and you call this, It will error out!
Returns:
- [ string ] The input that the user has entered.