Module control

Source
Expand description

Control Utilities

This module provides functions for controlling the console, including flushing the output buffer, clearing lines, and moving the cursor in various directions.

Structs§

Visibility
Struct for ensuring and changing cursor visibility.

Functions§

clear_line
Clears the current line in the console.
clear_lines
Clears the i lines in the console.
flush
Flushes the output buffer, ensuring that all content is written to the console.
move_cursor_down
Moves the cursor down by the specified number of lines.
move_cursor_left
Moves the cursor to the left by the specified number of characters.
move_cursor_right
Moves the cursor to the right by the specified number of characters.
move_cursor_to
Moves the cursor to the specified position on the console.
move_cursor_up
Moves the cursor up by the specified number of lines.