Struct panorama_tui::Terminal[][src]

pub struct Terminal<W> {
    stdout: W,
    buffers: [Buffer; 2],
    current: usize,
    hidden_cursor: bool,
    viewport: Viewport,
}

Fields

stdout: Wbuffers: [Buffer; 2]current: usizehidden_cursor: boolviewport: Viewport

Implementations

impl<W: Write> Terminal<W>[src]

pub fn new(stdout: W) -> Result<Self>[src]

pub fn with_options(stdout: W, options: TerminalOptions) -> Result<Self>[src]

pub fn pre_draw(&mut self) -> Result<()>[src]

pub fn post_draw(&mut self) -> Result<()>[src]

pub async fn draw<F, F2>(&mut self, f: F) -> Result<()> where
    F: FnOnce(&mut Frame<'_, W>) -> F2,
    F2: Future<Output = ()>, 
[src]

pub(crate) fn autoresize(&mut self) -> Result<()>[src]

pub(crate) fn resize(&mut self, area: Rect) -> Result<()>[src]

pub(crate) fn clear(&mut self) -> Result<()>[src]

pub(crate) fn flush(&mut self) -> Result<()>[src]

pub fn get_frame(&mut self) -> Frame<'_, W>[src]

pub(crate) fn draw_backend<I>(&mut self, content: I) -> Result<()> where
    I: Iterator<Item = (u16, u16, Cell)>, 
[src]

pub fn current_buffer_mut(&mut self) -> &mut Buffer[src]

pub fn show_cursor(&mut self) -> Result<()>[src]

pub fn set_cursor(&mut self, x: u16, y: u16) -> Result<()>[src]

pub fn size(&self) -> Result<Rect>[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for Terminal<W> where
    W: RefUnwindSafe
[src]

impl<W> Send for Terminal<W> where
    W: Send
[src]

impl<W> Sync for Terminal<W> where
    W: Sync
[src]

impl<W> Unpin for Terminal<W> where
    W: Unpin
[src]

impl<W> UnwindSafe for Terminal<W> where
    W: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.