Version: 0.1.5
Authors: Wade Mealing (wmealing@gmail.com
).
tb_init/0 | Initializes the termbox library. |
tb_shutdown/0 | The library must be finalized using the tb_shutdown() function. |
tb_width/0 | Returns the size of the internal back buffer (which is the same as terminal's window size in columns. |
tb_height/0 | Returns the size of the internal back buffer (which is the same as terminal's window size in rows. |
tb_clear/0 | Clears the internal back buffer using TB_DEFAULT color. |
tb_present/0 | Synchronizes the internal back buffer with the terminal by writing to the tty. |
tb_set_cursor/2 | Sets the position of the cursor. |
tb_hide_cursor/0 | Hides the cursor, not every tty supports this. |
tb_set_cell/5 | Sets the individual position of the screen at x,y to character ch, with foreground color fg and bg color bg. |
tb_peek_event/1 | Wait for an event up to timeout_ms milliseconds, returning event details in a tuple. |
tb_poll_event/0 | Same as tb_peek_event except no timeout, probably going to beat up erlang scheduler, maybe ?. |
tb_print/5 | Print the string at the X and y locations with fg and background colors set. |
tb_set_input_mode/1 | Sets the termbox input mode. |
tb_set_output_mode/1 | Sets the termbox output mode. |
tb_set_clear_attrs/2 | Sets the default foreground and background attributes used by tb_clear(). |
tb_init() -> any()
Initializes the termbox library. This function should be called before any other functions.
tb_shutdown() -> any()
The library must be finalized using the tb_shutdown() function. Called only when no more tb_ functions are required.
tb_width() -> any()
Returns the size of the internal back buffer (which is the same as terminal's window size in columns
tb_height() -> any()
Returns the size of the internal back buffer (which is the same as terminal's window size in rows
tb_clear() -> any()
Clears the internal back buffer using TB_DEFAULT color.
tb_present() -> any()
Synchronizes the internal back buffer with the terminal by writing to the tty.
tb_set_cursor(X, Y) -> any()
Sets the position of the cursor. Upper-left character is (0, 0).
tb_hide_cursor() -> any()
Hides the cursor, not every tty supports this.
tb_set_cell(X, Y, Ch, Fg, Bg) -> any()
Sets the individual position of the screen at x,y to character ch, with foreground color fg and bg color bg.
tb_peek_event(Timeout) -> any()
Wait for an event up to timeout_ms milliseconds, returning event details in a tuple.
tb_poll_event() -> any()
Same as tb_peek_event except no timeout, probably going to beat up erlang scheduler, maybe ?
tb_print(X, Y, Fg, Bg, Str) -> any()
Print the string at the X and y locations with fg and background colors set.
tb_set_input_mode(Mode) -> any()
Sets the termbox input mode.
tb_set_output_mode(Mode) -> any()
Sets the termbox output mode.
tb_set_clear_attrs(Fg, Bg) -> any()
Sets the default foreground and background attributes used by tb_clear().
Generated by EDoc