Protected Static Methods | |
static int32_t | background_color () |
Gets the background color of the console. | |
static bool | background_color (int32_t color) |
Sets the background color of the console. | |
static bool | beep (uint32_t frequency, uint32_t duration) |
Plays the sound of a beep of a specified frequency and duration through the console speaker. | |
static int32_t | buffer_height () |
Gets the height of the buffer area. | |
static bool | buffer_height (int32_t height) |
Sets or sets the height of the buffer area. | |
static int32_t | buffer_width () |
Gets the width of the buffer area. | |
static bool | buffer_width (int32_t width) |
Sets the width of the buffer area. | |
static bool | caps_lock () |
Gets a value indicating whether the CAPS LOCK keyboard toggle is turned on or turned off. | |
static bool | clear () |
Clears the console buffer and corresponding console window of display information. | |
static int32_t | cursor_left () |
Gets the column position of the cursor within the buffer area. | |
static int32_t | cursor_size () |
Gets or sets the height of the cursor within a character cell. | |
static bool | cursor_size (int32_t size) |
Sets the height of the cursor within a character cell. | |
static int32_t | cursor_top () |
Gets the row position of the cursor within the buffer area. | |
static bool | cursor_visible () |
Gets a value indicating whether the cursor is visible. | |
static bool | cursor_visible (bool visible) |
Sets a value indicating whether the cursor is visible. | |
static bool | echo (bool on) |
Sets the echo of the console on or off. | |
static int32_t | foreground_color () |
Gets the foreground color of the console. | |
static bool | foreground_color (int32_t color) |
Sets the foreground color of the console. | |
static int32_t | input_code_page () |
Gets the code page the console uses to read input. | |
static bool | input_code_page (int32_t codePage) |
Sets the code page the console uses to read input. | |
static bool | key_available () |
Gets a value indicating whether a key press is available in the input stream. | |
static int32_t | largest_window_height () |
Gets the largest possible number of console window rows, based on the current font and screen resolution. | |
static int32_t | largest_window_width () |
Gets the largest possible number of console window columns, based on the current font and screen resolution. | |
static bool | number_lock () |
Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or turned off. | |
static int32_t | output_code_page () |
Gets the code page the console uses to write output. | |
static bool | output_code_page (int32_t codePage) |
Sets the code page the console uses to write output. | |
static void | read_key (char32_t &key_char, char32_t &key_code, bool &alt, bool &shift, bool &ctrl) |
Obtains the next character or function key pressed by the user. | |
static void | register_user_cancel_callback (std::function< bool(int32_t)> user_cancel_callback) |
Register the user cancel callback. | |
static bool | reset_color () |
Sets the foreground and background console colors to their defaults. | |
static bool | set_cursor_position (int32_t left, int32_t top) |
Sets the position of the cursor. | |
static std::string | title () |
Gets the title to display in the console title bar. | |
static bool | title (const std::string &title) |
Sets the title to display in the console title bar. | |
static bool | treat_control_c_as_input () |
Gets a value indicating whether the combination of the Control modifier key and C console key (Ctrl+C) is treated as ordinary input or as an interruption that is handled by the operating system. | |
static bool | treat_control_c_as_input (bool treat_control_c_as_input) |
Sets a value indicating whether the combination of the Control modifier key and C console key (Ctrl+C) is treated as ordinary input or as an interruption that is handled by the operating system. | |
static int32_t | window_height () |
Gets the height of the console window area. | |
static bool | window_height (int32_t height) |
Sets the height of the console window area. | |
static int32_t | window_left () |
Gets the left of the console window area. | |
static bool | window_left (int32_t left) |
Sets the left of the console window area. | |
static int32_t | window_top () |
Gets the top of the console window area. | |
static bool | window_top (int32_t top) |
Sets the top of the console window area. | |
static int32_t | window_width () |
Gets the width of the console window area. | |
static bool | window_width (int32_t width) |
Sets the width of the console window area. | |
|
staticprotected |
Gets the background color of the console.
|
staticprotected |
Sets the background color of the console.
color | the background console color. |
|
staticprotected |
Plays the sound of a beep of a specified frequency and duration through the console speaker.
frequency | The frequency of the beep, ranging from 37 to 32767 hertz |
duration | The duration of the beep measured in milliseconds |
|
staticprotected |
Gets the height of the buffer area.
|
staticprotected |
Sets or sets the height of the buffer area.
height | The current height, in rows, of the buffer area. |
|
staticprotected |
Gets the width of the buffer area.
|
staticprotected |
Sets the width of the buffer area.
width | The current width, in columns, of the buffer area. |
|
staticprotected |
Gets a value indicating whether the CAPS LOCK keyboard toggle is turned on or turned off.
|
staticprotected |
Clears the console buffer and corresponding console window of display information.
|
staticprotected |
Gets the column position of the cursor within the buffer area.
|
staticprotected |
Gets or sets the height of the cursor within a character cell.
|
staticprotected |
Sets the height of the cursor within a character cell.
size | The size of the cursor expressed as a percentage of the height of a character cell. The property value ranges from 1 to 100. |
|
staticprotected |
Gets the row position of the cursor within the buffer area.
|
staticprotected |
Gets a value indicating whether the cursor is visible.
|
staticprotected |
Sets a value indicating whether the cursor is visible.
visible | true if the cursor is visible; otherwise, false. |
|
staticprotected |
Sets the echo of the console on or off.
on | if true the echo is on; otherwise is off. |
|
staticprotected |
Gets the foreground color of the console.
|
staticprotected |
Sets the foreground color of the console.
color | the foreground console color. |
|
staticprotected |
Gets the code page the console uses to read input.
|
staticprotected |
Sets the code page the console uses to read input.
code_page | The code page used to read console input. |
|
staticprotected |
Gets a value indicating whether a key press is available in the input stream.
true | if a key press is available; otherwise, false |
|
staticprotected |
Gets the largest possible number of console window rows, based on the current font and screen resolution.
The | height of the largest possible console window measured in rows. |
|
staticprotected |
Gets the largest possible number of console window columns, based on the current font and screen resolution.
The | width of the largest possible console window measured in columns. |
|
staticprotected |
Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or turned off.
true | if NUM LOCK is turned on; false if NUM LOCK is turned off. |
|
staticprotected |
Gets the code page the console uses to write output.
|
staticprotected |
Sets the code page the console uses to write output.
code_page | The code page used to write console output. |
|
staticprotected |
Obtains the next character or function key pressed by the user.
key_char | A bitwise combination of the enumeration values. There is no default value. |
key_code | A value that identifies the console key that was pressed. |
alt | true if alt key modifier is pressed; otherwise false. |
shift | true if shift key modifier is pressed; otherwise false. |
ctrl | true if control key modifier is pressed; otherwise false. |
|
staticprotected |
Register the user cancel callback.
user_cancel_callback | The user cancel callback method to register. |
|
staticprotected |
Sets the foreground and background console colors to their defaults.
|
staticprotected |
Sets the position of the cursor.
left | The column position of the cursor. Columns are numbered from left to right starting at 0. |
top | The row position of the cursor. Rows are numbered from top to bottom starting at 0. |
|
staticprotected |
Gets the title to display in the console title bar.
|
staticprotected |
Sets the title to display in the console title bar.
title | The string to be displayed in the title bar of the console. The maximum length of the title string is 24500 characters. |
|
staticprotected |
Gets a value indicating whether the combination of the Control modifier key and C console key (Ctrl+C) is treated as ordinary input or as an interruption that is handled by the operating system.
|
staticprotected |
Sets a value indicating whether the combination of the Control modifier key and C console key (Ctrl+C) is treated as ordinary input or as an interruption that is handled by the operating system.
treat_control_c_as_input | true if Ctrl+C is treated as ordinary input; otherwise, false. |
|
staticprotected |
Gets the height of the console window area.
|
staticprotected |
Sets the height of the console window area.
height | The height of the console window measured in rows. |
|
staticprotected |
Gets the left of the console window area.
|
staticprotected |
Sets the left of the console window area.
left | The left of the console window measured in columns. |
|
staticprotected |
Gets the top of the console window area.
|
staticprotected |
Sets the top of the console window area.
top | The top of the console window measured in rows. |
|
staticprotected |
Gets the width of the console window area.
|
staticprotected |
Sets the width of the console window area.
width | The width of the console window measured in columns. |