Console
The console functions are used to interact with one console window.
Behavior and examples documented on this page are based on Script-Ware.
rconsoleclear
function rconsoleclear(): ()Clears the output of the console window.
Aliases
consoleclear
Example
-- Create the console window
rconsolesettitle("New console")
rconsoleprint("Hello, world!")
rconsolecreate()
-- Clears the output "Hello, world!"
rconsoleclear()rconsolecreate
Opens the console window. Text previously output to the console will not be cleared.
🔎 NoteSome executors also allow functions like
rconsoleprintto open the console. This is confusing behavior that should not be relied on.
Aliases
consolecreate
Example
Create a program that generates a mountainous landscape:
rconsoledestroy
Closes the console window and clears its output. The title will not be changed.
Aliases
consoledestroy
Example
rconsoleinput
⏰ Yields
Waits for the user to input text into the console window. Returns the result.
Aliases
consoleinput
Example
rconsoleprint
Prints text to the console window. Does not clear existing text or create a new line.
Parameters
text- The text to append to the output.
Aliases
consoleprint
Example
rconsolesettitle
Sets the title of the console window to title.
Parameters
title- The new title.
Aliases
rconsolenameconsolesettitle
Example
Last updated