[−][src]Struct vt::Vt
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.
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>
1.36.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
impl<'a> Read for Vt<'a>
[src]
Reading from a Vt
reads directly from the underlying terminal.
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut]) -> Result<usize, Error>
1.36.0[src]
unsafe fn initializer(&self) -> Initializer
[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn bytes(self) -> Bytes<Self>
1.0.0[src]
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
R: Read,
fn take(self, limit: u64) -> Take<Self>
1.0.0[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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,