The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
fb_console.c File Reference

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.

Detailed Description

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.

Macro Definition Documentation

◆ FB_DEFAULT_BG

#define FB_DEFAULT_BG   0x00000000

Function Documentation

◆ fb_console_backend()

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).

Returns
a backend describing the framebuffer text grid.