Struct pseudoterm::RawTerminal [−][src]
pub struct RawTerminal<F: AsRawFd> { /* fields omitted */ }
A structure that will automatically reset terminal mode when dropped
Methods
impl<F: AsRawFd> RawTerminal<F>
[src]
impl<F: AsRawFd> RawTerminal<F>
pub fn new(file: F) -> Result<Self>
[src]
pub fn new(file: F) -> Result<Self>
Switch the terminal to raw mode and return a wrapper that will exit raw mode automatically when dropped
pub fn new_allow_failure(file: F) -> Self
[src]
pub fn new_allow_failure(file: F) -> Self
Like new(), but ignores any failure. Useful for switching to raw mode only if that's actually possible.
Trait Implementations
impl<F: AsRawFd> Deref for RawTerminal<F>
[src]
impl<F: AsRawFd> Deref for RawTerminal<F>
type Target = F
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<F: AsRawFd> DerefMut for RawTerminal<F>
[src]
impl<F: AsRawFd> DerefMut for RawTerminal<F>
impl<F: AsRawFd> Drop for RawTerminal<F>
[src]
impl<F: AsRawFd> Drop for RawTerminal<F>
Auto Trait Implementations
impl<F> Send for RawTerminal<F> where
F: Send,
impl<F> Send for RawTerminal<F> where
F: Send,
impl<F> Sync for RawTerminal<F> where
F: Sync,
impl<F> Sync for RawTerminal<F> where
F: Sync,