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]

[src]

Sets debug mode (changes characters and backgrounds into wireframe)

[src]

Refreshes the screen and returns weather the while-loop should continue (is the program running)

[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.

[src]

Draws the TextBuffer, this should be called every time in the while-loop.

[src]

Gets the current Input, must be retrieved every time you want new inputs. (ie. every frame)

[src]

Closes the Terminal

[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).

[src]

Shows the window, if it's hidden

[src]

Returns the current fps; updates every second

Trait Implementations

Auto Trait Implementations

impl !Send for Terminal

impl !Sync for Terminal