xtd.console - Reference Guide  0.0.1
Modern c++17 library to manage terminal on Windows, macOS and Linux.

§ cursor_size() [2/2]

template<class Char >
static void xtd::basic_console< Char >::cursor_size ( int  size)
inlinestaticnoexcept

Sets the height of the cursor within a character cell.

Parameters
sizeThe size of the cursor expressed as a percentage of the height of a character cell. The property value ranges from 1 to 100.
Returns
true if cursor size changed; otherwise false.
Example
This example demonstrates the cursor_size property. The example increases the size of the cursor each time any console key is pressed, then restores the cursor to its original size before terminating.