Skip to main content

move_to

Function move_to 

Source
pub fn move_to<W: Write>(writer: &mut W, col: u16, row: u16) -> Result<()>
Expand description

Move cursor to a specific position.

Writes a CUP (Cursor Position) sequence to move the cursor.

§Arguments

  • writer - The output writer
  • col - Column (0-indexed)
  • row - Row (0-indexed)

§Errors

Returns an error if writing to the output fails.