Skip to main content

DetectCursorPos

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§