Struct termion::cursor::Goto [] [src]

pub struct Goto(pub u16, pub u16);

Goto some position ((1,1)-based).

Why one-based?

ANSI escapes are very poorly designed, and one of the many odd aspects is being one-based. This can be quite strange at first, but it is not that big of an obstruction once you get used to it.

Example

extern crate termion;

fn main() {
    print!("{}{}Stuff", termion::clear::All, termion::cursor::Goto(5, 3));
}

Trait Implementations

impl Copy for Goto
[src]

impl Clone for Goto
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Goto
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Goto
[src]

impl Default for Goto
[src]

Returns the "default value" for a type. Read more

impl Display for Goto
[src]

Formats the value using the given formatter. Read more