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

§ cursor_left() [1/2]

template<class Char >
static int xtd::basic_console< Char >::cursor_left ( )
inlinestaticnoexcept

Gets the column position of the cursor within the buffer area.

Returns
The current position, in columns, of the cursor.
Example
This example demonstrates the cursor_left and cursor_top properties, and the set_cursor_position and clear methods. The example positions the cursor, which determines where the next write will occur, to draw a 5 character by 5 character rectangle using a combination of "+", "|", and "-" strings. Note that the rectangle could be drawn with fewer steps using a combination of other strings.