void fb_text_set_colors(uint8_t fg, uint8_t bg)
set the active foreground/background as ANSI colour indices (0-15).
Definition fb_text.c:173
uint8_t fb_text_cols(void)
Definition fb_text.c:90
void fb_text_scroll(void)
scroll the grid up by one row; the new bottom row is cleared.
Definition fb_text.c:144
void fb_text_clear(void)
clear the whole grid to the current background colour.
Definition fb_text.c:137
void fb_text_init(uint32_t scale, uint32_t margin)
initialize the text grid over the (already initialized) framebuffer.
Definition fb_text.c:62
void fb_text_set_cursor(uint8_t row, uint8_t col)
move / query the logical cursor (used by the tty backend to draw a caret).
Definition fb_text.c:161
void fb_text_put(uint8_t row, uint8_t col, char ch)
draw a glyph at a cell using the active ANSI colours (set via fb_text_set_colors).
Definition fb_text.c:179
void fb_text_draw_cursor(uint8_t row, uint8_t col, bool visible)
draw or erase the software caret at a cell.
Definition fb_text.c:184
void fb_text_get_cursor(uint8_t *row, uint8_t *col)
Definition fb_text.c:167
void fb_text_set_default_bg(uint32_t bg)
set the default background used by clear/scroll (0x00RRGGBB).
Definition fb_text.c:57
uint8_t fb_text_rows(void)
number of character rows / columns that fit on screen.
Definition fb_text.c:85
void fb_text_draw_glyph(uint8_t row, uint8_t col, char ch, uint32_t fg, uint32_t bg)
draw a glyph at a cell with explicit 0x00RRGGBB colours.
Definition fb_text.c:95