[][src]Struct swears::terminal::Terminal

pub struct Terminal { /* fields omitted */ }

Methods

impl Terminal[src]

pub fn new() -> Self[src]

pub fn with_color() -> Self[src]

pub fn set_size(&self, x: i32, y: i32)[src]

pub fn hide_cursor(&self)[src]

pub fn show_cursor(&self)[src]

pub fn enable_echo(&self)[src]

pub fn disable_echo(&self)[src]

pub fn enable_scrolling(&self)[src]

pub fn disable_scrolling(&self)[src]

pub fn get_key(&self) -> Option<Key>[src]

pub fn set_input_timeout(&self, milliseconds: u32)[src]

pub fn pause(&self)[src]

pub fn resume(&self)[src]

pub fn refresh(&self)[src]

pub fn clear(&self)[src]

pub fn move_print(&self, x: i32, y: i32, s: impl Into<ColorString>)[src]

pub fn println(&self, s: impl Into<ColorString>)[src]

pub fn print(&self, s: impl Into<ColorString>)[src]

pub fn clear_current_line(&self)[src]

pub fn move_cursor(&self, x: i32, y: i32)[src]

pub fn get_size(&self) -> (i32, i32)[src]

pub fn get_width(&self) -> i32[src]

pub fn get_height(&self) -> i32[src]

pub fn get_cursor(&self) -> (i32, i32)[src]

pub fn get_cursor_x(&self) -> i32[src]

pub fn get_cursor_y(&self) -> i32[src]

pub fn quit(&self)[src]

Trait Implementations

impl Clone for Terminal[src]

impl Debug for Terminal[src]

impl Drop for Terminal[src]

impl Iterator for Terminal[src]

type Item = Key

The type of the elements being iterated over.

impl<'_> Iterator for &'_ Terminal[src]

type Item = Key

The type of the elements being iterated over.

impl Sync for Terminal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.