Terminal
The Terminal class provides static functions to interact with the terminal's input/output.
Static Functions
Prints a string to the terminal output ending with a new line.
call Sparkle's Terminal's print with just "hello world"It is available as a macro.
print "hello world"Prints a raw string (with no automatic formatting) to the terminal output.
call Sparkle's Terminal's print_raw with just "hello world\n"Prints a prompt onto the terminal and returns the user's input as a string.
let name be call Sparkle's Terminal's ask with just "Please enter your name: "
print "hello {name}"It is available as a macro.
let name be ask "Please enter your name: "
print "hello {name}"Prints a prompt onto the terminal and pauses execution until the user presses Enter.
call Sparkle's Terminal's pause with just "Press enter to continue..."It is available as a macro.
pause "Press enter to continue..."