Struct glerminal::terminal::Terminal
[−]
[src]
pub struct Terminal { /* fields omitted */ }
Represents the Terminal itself.
See terminal mod for examples and more detailed documentation.
Methods
impl Terminal
[src]
pub fn set_debug(&self, debug: bool)
[src]
Sets debug mode (changes characters and backgrounds into wireframe)
pub fn refresh(&self) -> bool
[src]
Refreshes the screen and returns weather the while-loop should continue (is the program running)
pub fn flush(&self, text_buffer: &mut TextBuffer)
[src]
Flushes TextBuffer
, taking it's character-grid and making it show for the next draw.
This is quite a heavy function and it's calling should be avoided when unnecessary.
pub fn draw(&self, text_buffer: &TextBuffer)
[src]
Draws the TextBuffer
, this should be called every time in the while-loop.
pub fn get_current_input(&self) -> Input
[src]
Gets the current Input, must be retrieved every time you want new inputs. (ie. every frame)
pub fn close(&self)
[src]
Closes the Terminal
pub fn set_title<T: Into<String>>(&mut self, title: T)
[src]
Sets the title for the window.
Warning: This is a nuclear hazard (takes up a lot of performance), it might melt down your computer if called every frame (or so).
pub fn show(&mut self)
[src]
Shows the window, if it's hidden
pub fn get_fps(&self) -> f32
[src]
Returns the current fps; updates every second