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

§ cursor_left() [2/2]

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

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

Parameters
leftThe current position, in columns, of the cursor.
Returns
true if cursor left changed; otherwise false.
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.