Struct workflow_terminal::terminal::crossterm::Crossterm
source · pub struct Crossterm { /* private fields */ }Expand description
Crossterm
Wrapper around Crossterm interface - https://crates.io/crates/crossterm
Implementations§
source§impl Crossterm
impl Crossterm
pub fn try_new() -> Result<Self>
pub fn try_new_with_options(_options: &Options) -> Result<Self>
pub async fn init(self: &Arc<Self>, terminal: &Arc<Terminal>) -> Result<()>
pub fn exit(&self)
pub fn terminal(&self) -> Arc<Terminal>
pub async fn run(&self) -> Result<()>
pub async fn intake(&self, terminate: &Arc<AtomicBool>) -> Result<()>
pub fn write<S>(&self, s: S)where
S: ToString,
pub fn flush(&self)
source§impl Crossterm
impl Crossterm
pub fn get_font_size(&self) -> Result<Option<f64>>
pub fn set_font_size(&self, _font_size: f64) -> Result<()>
pub fn cols(&self) -> Option<usize>
pub fn rows(&self) -> Option<usize>
pub fn increase_font_size(&self) -> Result<Option<f64>>
pub fn decrease_font_size(&self) -> Result<Option<f64>>
Auto Trait Implementations§
impl RefUnwindSafe for Crossterm
impl Send for Crossterm
impl Sync for Crossterm
impl Unpin for Crossterm
impl UnwindSafe for Crossterm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more