These are a direct mapping of the termbox functions. Things should be built on top of these as they're very primitive.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | tb_init()
tb_shutdown()
tb_width()
tb_height()
tb_clear()
tb_set_clear_attributes(fg, bg)
tb_present()
tb_set_cursor(cx, cy)
tb_change_cell(x, y, ch, fg, bg)
tb_cell_buffer()
tb_select_input_mode(mode)
tb_select_output_mode(mode)
tb_peek_event(timeout)
tb_poll_event()
|
fg,bg |
foregreound and background colours (see |
cx,cy |
x and y position of the cursor |
x,y |
x and y position of the cell |
ch |
A single character code |
mode |
input or output mode (see |
timeout |
timeout in milliseconds |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.