Terminal
Functions
Section titled “Functions”Get a single character input by the user.
Return Type: Char
Returns: The character typed by the user.
Signatures:
char read_char()public static char SplashKit.ReadChar();def read_char():function ReadChar(): CharRead a line of text from the terminal. The user will see the text as they type it.
Return Type: String
Returns: The text entered by the user.
Signatures:
string read_line()public static string SplashKit.ReadLine();def read_line():function ReadLine(): StringUsage: {</>}
Checks if there is data waiting to be read by read line or read char.
Return Type: Boolean
Returns: true if there is data waiting to be read.
Signatures:
bool terminal_has_input()public static bool SplashKit.TerminalHasInput();def terminal_has_input():function TerminalHasInput(): BooleanWrite the passed in data to the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Char | The character to write |
Signatures:
void write(char data)public static void SplashKit.Write(char data);def write_char(data):procedure Write(data: Char)Write the passed in data to the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Double | The text to write |
Signatures:
void write(double data)public static void SplashKit.Write(double data);def write_double(data):procedure Write(data: Double)Write the passed in data to the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Integer | The text to write |
Signatures:
void write(int data)public static void SplashKit.Write(int data);def write_int(data):procedure Write(data: Integer)Write the supplied text to the Terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| text | String | The text to write |
Signatures:
void write(string text)public static void SplashKit.Write(string text);def write(text):procedure Write(text: String)Usage: {</>}
Write the passed in data, then move to the next line/row of the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Char | The character to write |
Signatures:
void write_line(char data)public static void SplashKit.WriteLine(char data);def write_line_char(data):procedure WriteLine(data: Char)Move to the next line/row of the terminal.
Signatures:
void write_line()public static void SplashKit.WriteLine();def write_line_empty():procedure WriteLine()Write the passed in data, then move to the next line/row of the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Double | The text to write |
Signatures:
void write_line(double data)public static void SplashKit.WriteLine(double data);def write_line_double(data):procedure WriteLine(data: Double)Usage: {</>}
Write the passed in data, then move to the next line/row of the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| data | Integer | The text to write |
Signatures:
void write_line(int data)public static void SplashKit.WriteLine(int data);def write_line_int(data):procedure WriteLine(data: Integer)Usage: {</>}
Write the passed in text, then move to the next line/row of the terminal.
Parameters:
| Name | Type | Description |
|---|---|---|
| line | String | The text to write |
Signatures:
void write_line(string line)public static void SplashKit.WriteLine(string line);def write_line(line):procedure WriteLine(line: String)Usage: {</>}