Struct endbasic_std::terminal::TerminalConsole [−][src]
Implementation of the EndBASIC console to interact with stdin and stdout.
Implementations
impl TerminalConsole
[src]
pub fn from_stdio() -> Result<Self>
[src]
Creates a new console based on the properties of stdin/stdout.
Trait Implementations
impl Console for TerminalConsole
[src]
fn clear(&mut self, how: ClearType) -> Result<()>
[src]
fn color(&mut self, fg: Option<u8>, bg: Option<u8>) -> Result<()>
[src]
fn enter_alt(&mut self) -> Result<()>
[src]
fn hide_cursor(&mut self) -> Result<()>
[src]
fn is_interactive(&self) -> bool
[src]
fn leave_alt(&mut self) -> Result<()>
[src]
fn locate(&mut self, pos: Position) -> Result<()>
[src]
fn move_within_line(&mut self, off: i16) -> Result<()>
[src]
fn print(&mut self, text: &str) -> Result<()>
[src]
fn read_key<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Key>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Key>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn show_cursor(&mut self) -> Result<()>
[src]
fn size(&self) -> Result<Position>
[src]
fn write(&mut self, bytes: &[u8]) -> Result<()>
[src]
impl Drop for TerminalConsole
[src]
Auto Trait Implementations
impl RefUnwindSafe for TerminalConsole
[src]
impl Send for TerminalConsole
[src]
impl Sync for TerminalConsole
[src]
impl Unpin for TerminalConsole
[src]
impl UnwindSafe for TerminalConsole
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,