[][src]Struct fltk::text::SimpleTerminal

pub struct SimpleTerminal { /* fields omitted */ }

Creates an editable text display widget SimpleTerminal already has an internal buffer

Implementations

impl SimpleTerminal[src]

pub fn set_stay_at_bottom(&mut self, arg1: bool)[src]

Sets whether the terminal automatically stays at the bottom

pub fn stay_at_bottom(&self) -> bool[src]

Returns whether the terminal automatically stays at the bottom

pub fn set_history_lines(&mut self, arg1: u32)[src]

Sets the max lines allowed in history

pub fn history_lines(&self) -> u32[src]

Gets the max lines allowed in history

pub fn set_ansi(&mut self, val: bool)[src]

Enables ANSI sequences within the text to control text colors

pub fn ansi(&self) -> bool[src]

Returns whether ANSI sequences are enabled

pub fn append(&mut self, s: &str)[src]

Appends text to the terminal buffer

pub fn set_text(&mut self, s: &str)[src]

Sets the text of the terminal buffer

pub fn text(&self) -> String[src]

Gets the text of the terminal buffer

pub fn clear(&mut self)[src]

Clears the terminal

pub fn remove_lines(&mut self, start: u32, count: u32)[src]

Removes count lines from start

Trait Implementations

impl Clone for SimpleTerminal[src]

impl Debug for SimpleTerminal[src]

impl DisplayExt for SimpleTerminal[src]

impl Send for SimpleTerminal[src]

impl Sync for SimpleTerminal[src]

impl WidgetExt for SimpleTerminal[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.