Skip to main content

position

Function position 

pub fn position() -> Result<(u16, u16), Error>
Available on crate feature term only.
Expand description

Returns the cursor position (column, row).

The top left cell is represented as (0, 0).

On unix systems, this function will block and possibly time out while crossterm::event::read or crossterm::event::poll are being called.