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

§ cursor_visible() [2/2]

template<class Char >
static void xtd::basic_console< Char >::cursor_visible ( bool  visible)

Sets a value indicating whether the cursor is visible.

visibletrue if the cursor is visible; otherwise, false.
This example demonstrates the cursor_visible property. The example makes the cursor visible if the first column of input is a '+' character or invisible if the input is a '-' character.