Skip to main content

write_cup

Function write_cup 

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

Move the cursor to an absolute position with CUP, ESC [ <row+1> ; <col+1> H.

row and col are zero-based API coordinates. The writer omits the column when col == 0 and emits bare ESC [ H for the origin.