Terminal
Functions
Read Char
Get a single character input by the user.
Return Type: Char
Signatures:
char read_char()
public static char Terminal.ReadChar();public static char SplashKit.ReadChar();
def read_char():
function ReadChar(): Char
Read Line
Read a line of text from the terminal. The user will see the text as they type it.
Return Type: String
Signatures:
string read_line()
public static string Terminal.ReadLine();public static string SplashKit.ReadLine();
def read_line():
function ReadLine(): String
Terminal Has Input
Checks if there is data waiting to be read by read line or read char.
Return Type: Boolean
Signatures:
bool terminal_has_input()
public static bool Terminal.TerminalHasInput();public static bool SplashKit.TerminalHasInput();
def terminal_has_input():
function TerminalHasInput(): Boolean
Write
Write
Write 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 Terminal.Write(char data);public static void SplashKit.Write(char data);
def write_char(data):
procedure Write(data: Char)
Write
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 Terminal.Write(double data);public static void SplashKit.Write(double data);
def write_double(data):
procedure Write(data: Double)
Write
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 Terminal.Write(int data);public static void SplashKit.Write(int data);
def write_int(data):
procedure Write(data: Integer)
Write
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 Terminal.Write(string text);public static void SplashKit.Write(string text);
def write(text):
procedure Write(text: String)
Write Line
Write Line
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 Terminal.WriteLine(char data);public static void SplashKit.WriteLine(char data);
def write_line_char(data):
procedure WriteLine(data: Char)
Write Line
Move to the next line/row of the terminal.
Signatures:
void write_line()
public static void Terminal.WriteLine();public static void SplashKit.WriteLine();
def write_line_empty():
procedure WriteLine()
Write Line
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 Terminal.WriteLine(double data);public static void SplashKit.WriteLine(double data);
def write_line_double(data):
procedure WriteLine(data: Double)
Write Line
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 Terminal.WriteLine(int data);public static void SplashKit.WriteLine(int data);
def write_line_int(data):
procedure WriteLine(data: Integer)
Write Line
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 Terminal.WriteLine(string line);public static void SplashKit.WriteLine(string line);
def write_line(line):
procedure WriteLine(line: String)