|
ginnOS
The reference: libc, the libraries and the kernel
|
adapts the framebuffer text grid to the tty backend interface. More...
Macros | |
| #define | FB_DEFAULT_BG 0x00000000 |
Functions | |
| const tty_backend_t * | fb_console_backend (void) |
| initialize the framebuffer text grid and return a tty backend that renders onto it. | |
adapts the framebuffer text grid to the tty backend interface.
the tty state machine drives a tty_backend_t (put_at/scroll/clear/cursor). these adapters forward to fb_text, supplying the default colours the current parser does not carry (SGR colour handling arrives in FB4). the backend's rows/cols are filled in at init from the runtime grid size, so this is a live struct rather than a compile-time constant like the VGA one.
| #define FB_DEFAULT_BG 0x00000000 |
| const tty_backend_t * fb_console_backend | ( | void | ) |
initialize the framebuffer text grid and return a tty backend that renders onto it.
the framebuffer must already be initialized (fb_init).