Struct crossterm::TerminalOutput [−][src]
pub struct TerminalOutput {
pub is_in_raw_mode: bool,
// some fields omitted
}Struct that is an handle to an terminal screen. This handle could be used to write to the current screen
For unix and windows 10 stdout() will be used for handle when on windows systems with versions lower than 10 WinApi HANDLE will be used.
Fields
is_in_raw_mode: bool
Methods
impl TerminalOutput[src]
impl TerminalOutputpub fn new(raw_mode: bool) -> Self[src]
pub fn new(raw_mode: bool) -> SelfCreate new screen write instance whereon screen related actions can be performed.
pub fn write_string(&self, string: String) -> Result<usize>[src]
pub fn write_string(&self, string: String) -> Result<usize>Write String to the current screen.
pub fn flush(&self) -> Result<()>[src]
pub fn flush(&self) -> Result<()>Flush the current screen.
pub fn write_str(&self, string: &str) -> Result<usize>[src]
pub fn write_str(&self, string: &str) -> Result<usize>Write &str to the current screen.
pub fn write_buf(&self, buf: &[u8]) -> Result<usize>[src]
pub fn write_buf(&self, buf: &[u8]) -> Result<usize>Write buffer to the screen
pub fn as_any(&self) -> &Any[src]
pub fn as_any(&self) -> &Anypub fn as_any_mut(&mut self) -> &mut Any[src]
pub fn as_any_mut(&mut self) -> &mut AnyTrait Implementations
impl From<TerminalOutput> for Screen[src]
impl From<TerminalOutput> for Screenfn from(stdout: TerminalOutput) -> Self[src]
fn from(stdout: TerminalOutput) -> SelfCreate an screen with the given Stdout
impl Default for TerminalOutput[src]
impl Default for TerminalOutputAuto Trait Implementations
impl Send for TerminalOutput
impl Send for TerminalOutputimpl Sync for TerminalOutput
impl Sync for TerminalOutput