Represents the console's cursor.
Methods
public void Move(CursorDirection direction, int steps)
Moves the cursor relative to the current position.
Parameters:
direction (CursorDirection)The direction to move the cursor.
steps (int)The number of steps to move the cursor.
public void SetPosition(int column, int line)
Sets the cursor position.
Parameters:
column (int)The column to move the cursor to.
line (int)The line to move the cursor to.
public void Show(bool show)
Shows or hides the cursor.
Parameters:
show (bool)true to show the cursor, false to hide it.Extension Methods
void Hide(this IAnsiConsoleCursor cursor)Hides the cursor.
void MoveDown(this IAnsiConsoleCursor cursor)Moves the cursor down.
void MoveDown(this IAnsiConsoleCursor cursor, int steps)Moves the cursor down.
void MoveLeft(this IAnsiConsoleCursor cursor)Moves the cursor to the left.
void MoveLeft(this IAnsiConsoleCursor cursor, int steps)Moves the cursor to the left.
void MoveRight(this IAnsiConsoleCursor cursor)Moves the cursor to the right.
void MoveRight(this IAnsiConsoleCursor cursor, int steps)Moves the cursor to the right.
void MoveUp(this IAnsiConsoleCursor cursor)Moves the cursor up.
void MoveUp(this IAnsiConsoleCursor cursor, int steps)Moves the cursor up.
void Show(this IAnsiConsoleCursor cursor)Shows the cursor.