[−][src]Struct linefeed::terminal::DefaultTerminal
Default Terminal
interface
Methods
impl DefaultTerminal
[src]
pub fn new() -> Result<DefaultTerminal>
[src]
Opens access to the terminal device associated with standard output.
pub fn stderr() -> Result<DefaultTerminal>
[src]
Opens access to the terminal device associated with standard error.
Trait Implementations
impl Terminal for DefaultTerminal
[src]
type PrepareState = PrepareState
Returned by prepare
; passed to restore
to restore state.
fn name(&self) -> &str
[src]
fn lock_read<'a>(&'a self) -> Box<dyn TerminalReader<Self> + 'a>
[src]
fn lock_write<'a>(&'a self) -> Box<dyn TerminalWriter<Self> + 'a>
[src]
impl<'a> TerminalReader<DefaultTerminal> for TerminalReadGuard<'a>
[src]
fn prepare(
&mut self,
block_signals: bool,
report_signals: SignalSet
) -> Result<PrepareState>
[src]
&mut self,
block_signals: bool,
report_signals: SignalSet
) -> Result<PrepareState>
unsafe fn prepare_with_lock(
&mut self,
lock: &mut dyn TerminalWriter<DefaultTerminal>,
block_signals: bool,
report_signals: SignalSet
) -> Result<PrepareState>
[src]
&mut self,
lock: &mut dyn TerminalWriter<DefaultTerminal>,
block_signals: bool,
report_signals: SignalSet
) -> Result<PrepareState>
fn restore(&mut self, state: PrepareState) -> Result<()>
[src]
unsafe fn restore_with_lock(
&mut self,
lock: &mut dyn TerminalWriter<DefaultTerminal>,
state: PrepareState
) -> Result<()>
[src]
&mut self,
lock: &mut dyn TerminalWriter<DefaultTerminal>,
state: PrepareState
) -> Result<()>
fn read(&mut self, buf: &mut Vec<u8>) -> Result<RawRead>
[src]
fn wait_for_input(&mut self, timeout: Option<Duration>) -> Result<bool>
[src]
impl<'a> TerminalWriter<DefaultTerminal> for TerminalWriteGuard<'a>
[src]
fn size(&self) -> Result<Size>
[src]
fn clear_screen(&mut self) -> Result<()>
[src]
fn clear_to_screen_end(&mut self) -> Result<()>
[src]
fn move_up(&mut self, n: usize) -> Result<()>
[src]
fn move_down(&mut self, n: usize) -> Result<()>
[src]
fn move_left(&mut self, n: usize) -> Result<()>
[src]
fn move_right(&mut self, n: usize) -> Result<()>
[src]
fn move_to_first_column(&mut self) -> Result<()>
[src]
fn set_cursor_mode(&mut self, mode: CursorMode) -> Result<()>
[src]
fn write(&mut self, s: &str) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl Send for DefaultTerminal
impl Sync for DefaultTerminal
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,