diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-05-19 00:09:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-05-19 00:09:18 -0700 |
commit | 537ad74cccc709b14418114e177d595ce3812627 (patch) | |
tree | fd0f7779e54c207a6debee0e806f29820375222d /termbox/termbox.h | |
parent | b6fa632e2f46467c76c7fb39c731cb17e8558ee0 (diff) | |
download | mu-537ad74cccc709b14418114e177d595ce3812627.tar.gz |
3862
As the finishing touch on commit 3860, completely decouple the termbox API between moving the cursor and printing at the cursor.
Diffstat (limited to 'termbox/termbox.h')
-rw-r--r-- | termbox/termbox.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/termbox/termbox.h b/termbox/termbox.h index 97306142..43b326cb 100644 --- a/termbox/termbox.h +++ b/termbox/termbox.h @@ -37,16 +37,16 @@ int tb_is_active(void); int tb_width(void); int tb_height(void); -/* Clear the internal screen state using either TB_DEFAULT or the - * color/attributes set by tb_set_clear_attributes(). */ +/* Clear the screen using either TB_DEFAULT or the color/attributes set by + * tb_set_clear_attributes(). */ void tb_clear(void); void tb_set_clear_attributes(uint16_t fg, uint16_t bg); /* Move the cursor. Upper-left character is (0, 0). */ void tb_set_cursor(int cx, int cy); -/* Modify a specific cell of the screen. */ -void tb_change_cell(int x, int y, uint32_t ch, uint16_t fg, uint16_t bg); +/* Modify the screen at the cursor. */ +void tb_print(uint32_t ch, uint16_t fg, uint16_t bg); /*** 2. Controlling keyboard events. */ |