Include this Package with
[i] This package includes most of the fundamental things, like Console functions and things like Sleep().
Print will Write a message out to the Console, and go to the next line.
Write will Write a message out to the Console and will stay on the same line.
Will let the user type a line, and return it as a String.
Will let the user type a character and return it as a String.
Will let the user type a character, but without showing it in the console and return it as a String.
Will read from the raw console standard input stream character by characterand return the char as an int.
Clears all text from the Console.
Will pause the Thread for the given amount of Milliseconds.
Beep(freq int, duration int)
Plays the given Frequency for the given amount of Time, using the Console's beeper.
Will return the Character corresponding to the given ASCII code as a String.
Will return the commandline argument at the given index as a string. (NOTE: the first argument is always the path of the executable)
Will return all commandline arguments as a string array.
SetSize(width int, height int)
SetSize will set the Size of the Console window to the given Width and Height. (Please note that the inputs are in Characters, not Pixels)
SetCursor(x int, y int)
Sets the Console's Cursor to the given Position.
Will get the X coordinate of the Console's Cursor.
Will get the Y coordinate of the Console's Cursor.
Sets the Console's Cursor visibility.
Sets the Console's Foreground color.
Sets the Console's Background color.
ReCT has 16 different colors you can use in the Console. Here is an overview of them:
Will launch the application at the given path in a seperate process.
LaunchApplicationWithArgs(path string, args string, waitForEnd bool)
Will launch the application at the given path with the given arguments in a seperate process. If the wait bool is set, the program will be paused until the process finishes.
LaunchApplicationWithOutput(path string, args string)
Will launch the application at the given path with the given arguments in a seperate process and will wait until it is done, after that it returns the processes output as a string.