Interface to 'termbox'
Interface to 'termbox'. The idea is low level support for terminal based reactive apps.
boxr
supports the full termbox interface, which is not very large.
tb_init
tb_shutdown
tb_width
tb_height
tb_clear
tb_set_clear_attributes
tb_present
tb_set_cursor
tb_change_cell
tb_cell_buffer
(read-only)tb_select_input_mode
tb_select_output_mode
tb_peek_event
tb_poll_event
The termbox documentation is the best place for details on these functions; the R interface here merely exposes them and does a teensy bit of type coersion.
The many, many constants defined by termbox are available in the tb
object (e.g. tb$BLUE
is the colour code for blue). See ls(boxr::tb)
for the full set.
In addition, boxr
has two vectorised version of tb_change_cell
:
boxr_change_cell
- vectorised in all argumentsboxr_change_rect
- takes x, y rectangle corners as x/y argumentsdevtools::install_github("richfitz/boxr")
MIT + file LICENSE © Rich FitzJohn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.