Shows how to use xtd::console::cursor_visible property.
#include <xtd/console>
auto main() -> int {
auto m1 = "\nThe cursor is {0}.\nType any text then press Enter. "
"Type '+' in the first column to show \n"
"the cursor, '-' to hide the cursor, "
"or lowercase 'x' to quit:"_s;
auto s = string::empty_string;
while (true) {
break;
}
}
}
bool is_empty() const noexcept
Definition basic_string.hpp:1471
static xtd::string read_line()
Reads the next line of characters from the standard input stream.
static int32 cursor_size()
Gets or sets the height of the cursor within a character cell.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static bool cursor_visible()
Gets a value indicating whether the cursor is visible.
@ s
The S key.
Definition console_key.hpp:124
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8