Updated C API
This commit is contained in:
parent
8711d28bdc
commit
23d7f52402
@ -92,19 +92,19 @@ constants, including terminal escape values and keycodes.
|
||||
void btui_draw_shadow(btui_t *bt, int x, int y, int w, int h);
|
||||
btui_t* btui_enable(void);
|
||||
void btui_fill_box(btui_t *bt, int x, int y, int w, int h);
|
||||
#define btui_flush(bt) fflush((bt)->out)
|
||||
int btui_flush(btui_t *bt);
|
||||
int btui_getkey(btui_t *bt, int timeout, int *mouse_x, int *mouse_y);
|
||||
char *btui_keyname(int key, char *buf);
|
||||
int btui_keynamed(const char *name);
|
||||
int btui_move_cursor(btui_t *bt, int x, int y);
|
||||
#define btui_printf(bt, ...) fprintf((bt)->out, __VA_ARGS__)
|
||||
#define btui_puts(bt, s) fputs(s, (bt)->out)
|
||||
int btui_puts(btui_t *bt, const char *s);
|
||||
int btui_set_attributes(btui_t *bt, attr_t attrs);
|
||||
int btui_set_bg(btui_t *bt, unsigned char r, unsigned char g, unsigned char b);
|
||||
int btui_set_bg_hex(btui_t *bt, int hex);
|
||||
int btui_set_fg(btui_t *bt, unsigned char r, unsigned char g, unsigned char b);
|
||||
int btui_set_fg_hex(btui_t *bt, int hex);
|
||||
#define btui_suspend(bt) kill(getpid(), SIGTSTP)
|
||||
int btui_suspend(btui_t *bt);
|
||||
|
||||
See [C/test.c](C/test.c) and [C/rainbow.c](C/rainbow.c) for example usage. You
|
||||
can run `make testc` to run the C test demo and `make rainbow` to run the
|
||||
|
Loading…
Reference in New Issue
Block a user