Struct termbox::Termbox [] [src]

pub struct Termbox { /* fields omitted */ }

The main entry point for all termbox functions. This ensures that the terminal can only be accessed from one thread. Sadly, writing to stdout can potentially interfere with termbox output.

Methods

impl Termbox
[src]

Copies a rectangular region of cells from a slice to the output buffer.

Returns a slice representing the output buffer.

Returns a mutable slice representing the output buffer.

Changes a single cell in the output buffer.

Clears the output buffer and sets all cell attributes to those specified with set_clear_attributes.

Returns the height of the output buffer in character cells.

Sets the cursor to an invalid position, making it invisible to the user.

Returns the input mode. See set_input_mode.

Determines whether mouse events are enabled. See set_mouse_enabled.

Locks the terminal to an instance of Termbox. Only one instance may exist in a process.

Returns the current output mode. See set_output_mode.

Waits up to timeout milliseconds for an event. If an event is received, that event is returned. Otherwise, None is returned. A timeout of zero can be specified to poll for events that have already been received without waiting.

Waits for an input event and returns it.

Writes any changes to the output buffer into the terminal. This must be called in order for the user to see any changes.

Changes a single character cell.

Writes a horizontal sequence of character cells without wrapping. This is just a quick and dirty way to write strings without providing many options.

Sets what attributes should be used when clearing the output buffer with clear.

Sets the position of the cursor. If invalid coordinates are provided, the cursor is hidden.

Sets the method termbox should use to handle ESC sequences in the input buffer.

Enables or disables mouse events. Mouse events are disabled by default.

Sets the method termbox should use to interpret output attributes.

Returns the width of the output buffer in character cells.

Trait Implementations

impl Drop for Termbox
[src]

A method called when the value goes out of scope. Read more