termion::cursor

Trait DetectCursorPos

Source
pub trait DetectCursorPos {
    // Required method
    fn cursor_pos(&mut self) -> Result<(u16, u16)>;
}
Expand description

Types that allow detection of the cursor position.

Required Methods§

Source

fn cursor_pos(&mut self) -> Result<(u16, u16)>

Get the (1,1)-based cursor position from the terminal.

Implementors§