[][src]Struct vt::Vt

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

An allocated virtual terminal.

Methods

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

pub fn number(&self) -> VtNumber[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 set_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 is_echo_enabled(&self) -> 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.

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

Configures the terminal in raw mode: input is available character by character, echoing is disabled, and all special processing of terminal input and output characters is disabled.

Trait Implementations

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

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

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

Delegates the implementation of Write to the underlying File.

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

Delegates the implementation of Read to the underlying File.

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

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]