|
ginnOS
The reference: libc, the libraries and the kernel
|
character-cell backend a tty draws onto. More...
#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/kernel/tty/tty.h>
Data Fields | |
| void(*) | put_at (char c, uint8_t row, uint8_t col) |
| void(*) | scroll (void) |
| void(*) | clear (void) |
| void(*) | set_cursor (uint8_t row, uint8_t col) |
| void(*) | get_cursor (uint8_t *row, uint8_t *col) |
| void(*) | set_colors (uint8_t fg, uint8_t bg) |
| void(*) | draw_cursor (uint8_t row, uint8_t col, bool visible) |
| void(*) | flush (void) |
| uint8_t | rows |
| uint8_t | cols |
character-cell backend a tty draws onto.
put_at/scroll/clear/set_cursor/ get_cursor/rows/cols are required; set_colors and draw_cursor are optional (NULL is fine) so a backend that has no notion of colour or needs no software caret can omit them. coordinates are zero-based (row, col); the backend defines its own bounds.
| void(*) tty_backend_t::scroll(void) |
| void(*) tty_backend_t::clear(void) |
| void(*) tty_backend_t::flush(void) |
| uint8_t tty_backend_t::rows |
| uint8_t tty_backend_t::cols |