View Source termbox2 (termbox2 v0.1.2)
Summary
Functions
Clears the internal back buffer using TB_DEFAULT color.
Returns the size of the internal back buffer (which is the same as terminal's window size in rows
Hides the cursor, not every tty supports this.
Initializes the termbox library. This function should be called before any other functions.
Wait for an event up to timeout_ms milliseconds, returning event details in a tuple.
Same as tb_peek_event except no timeout, probably going to beat up erlang scheduler, maybe ?
Synchronizes the internal back buffer with the terminal by writing to the tty.
Print the string at the X and y locations with fg and background colors set.
Sets the individual position of the screen at x,y to character ch, with foreground color fg and bg color bg.
Sets the position of the cursor. Upper-left character is (0, 0).
The library must be finalized using the tb_shutdown() function. Called only when no more tb_ functions are required.
Returns the size of the internal back buffer (which is the same as terminal's window size in columns