Function crossterm::cursor::cursor[][src]

pub fn cursor() -> Box<TerminalCursor>

Get an TerminalCursor implementation whereon cursor related actions can be performed.

Check /examples/cursor in the libary for more spesific examples.

#Example


extern crate crossterm;

use self::crossterm::cursor;
 
// Get cursor and goto pos X: 5, Y: 10
let mut cursor = cursor::cursor();
cursor.goto(5,10);
     
//Or you can do it in one line.
cursor::cursor().goto(5,10);