[][src]Struct vt::Vt

pub struct Vt<'a> { /* fields omitted */ }

An allocated virtual terminal.

Methods

impl<'a> Vt<'a>[src]

pub fn number(&self) -> u16[src]

Returns the number of this virtual terminal.

pub fn switch(&self) -> Result<&Self>[src]

Switches to this virtual terminal. This is just a shortcut for Console::switch_to.

Returns self for chaining.

pub fn clear(&mut self) -> Result<&mut Self>[src]

Clears the terminal.

Returns self for chaining.

pub fn set_blank_timer(&mut self, timer: u32) -> Result<&mut Self>[src]

Sets the blank timer for this terminal. A value of 0 disables the timer.

Returns self for chaining.

pub fn blank(&mut self, blank: bool) -> Result<&mut Self>[src]

Blanks or unlanks the terminal.

Returns self for chaining.

pub fn echo(&mut self, echo: bool) -> Result<&mut Self>[src]

Enables or disables the echo of the characters typed by the user.

Returns self for chaining.

pub fn get_echo(&mut self) -> Result<bool>[src]

Returns a value indicating whether this terminal has echo enabled or not.

pub fn signals(&mut self, signals: VtSignals) -> Result<&mut Self>[src]

Enables or disables signal generation from terminal.

Returns self for chaining.

pub fn flush_buffers(&mut self, t: VtFlushType) -> Result<&mut Self>[src]

Flushes the internal buffers of the terminal.

Trait Implementations

impl<'a> Drop for Vt<'a>[src]

impl<'a> Write for Vt<'a>[src]

Writing to a Vt writes directly to the underlying terminal.

impl<'a> Read for Vt<'a>[src]

Reading from a Vt reads directly from the underlying terminal.

Auto Trait Implementations

impl<'a> Unpin for Vt<'a>

impl<'a> !Sync for Vt<'a>

impl<'a> Send for Vt<'a>

impl<'a> UnwindSafe for Vt<'a>

impl<'a> !RefUnwindSafe for Vt<'a>

Blanket Implementations

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

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

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

type Error = Infallible

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.

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

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

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