/// <summary> /// Moves the cursor to the left. /// </summary> /// <param name="cursor">The cursor.</param> public static void MoveLeft(this IAnsiConsoleCursor cursor) { if (cursor is null) { throw new System.ArgumentNullException(nameof(cursor)); } cursor.Move(CursorDirection.Left, 1); }
/// <summary> /// Moves the cursor down. /// </summary> /// <param name="cursor">The cursor.</param> /// <param name="steps">The number of steps to move the cursor.</param> public static void MoveDown(this IAnsiConsoleCursor cursor, int steps) { if (cursor is null) { throw new System.ArgumentNullException(nameof(cursor)); } cursor.Move(CursorDirection.Down, steps); }