|
AquilaOS documentation
How it works, and its code
|
Virtual terminals on the framebuffer. More...
Go to the source code of this file.
Macros | |
| #define | FONT_W 8 |
| #define | FONT_H 16 |
Functions | |
| struct fbdev * | fbdev_primary (void) |
| Returns the first framebuffer, once it is set up, for the virtual terminals. | |
| static void | put_pixel (uint8_t *p, uint32_t rgb) |
| Writes one pixel of colour rgb (0xRRGGBB) at p, in the framebuffer's pixel format. | |
| static void | fb_draw (int row, int col, struct vt_cell cell) |
| Draws one cell of the terminal: its character's glyph, in its colours and attributes (bold, reverse, dim, invisible, underline, cursor). | |
| int | vt_fb_probe (void) |
| Sets up the virtual terminals on the framebuffer, if there is one the terminals can draw on, and clears the screen. | |
Variables | |
| const unsigned char | font_8x16 [] |
| static uint8_t * | fb |
| static uint32_t | pitch |
| static uint32_t | bytes_pp |
| struct vt_display | vt_fb_display |
Virtual terminals on the framebuffer.
Each cell of the terminal is drawn as a character of the early console's 8x16 font, in the cell's colours, pixel by pixel. Framebuffers of 16, 24 and 32 bits per pixel are supported. The virtual terminals (vt.c) draw through vt_fb_display.
Definition in file fb.c.
| #define FONT_H 16 |
Definition at line 16 of file fb.c.
Referenced by fb_draw(), and vt_fb_probe().
| #define FONT_W 8 |
Definition at line 15 of file fb.c.
Referenced by fb_draw(), and vt_fb_probe().
|
static |
Draws one cell of the terminal: its character's glyph, in its colours and attributes (bold, reverse, dim, invisible, underline, cursor).
Definition at line 48 of file fb.c.
References vt_cell::attr, vt_cell::bg, bytes_pp, vt_cell::ch, fb, fb_draw(), vt_cell::fg, font_8x16, FONT_H, FONT_W, pitch, put_pixel(), VT_BOLD, VT_CURSOR, VT_DIM, VT_INVISIBLE, vt_palette(), VT_REVERSE, and VT_UNDERLINE.
Referenced by fb_draw().
|
extern |
Writes one pixel of colour rgb (0xRRGGBB) at p, in the framebuffer's pixel format.
Definition at line 29 of file fb.c.
References bytes_pp, and put_pixel().
Referenced by fb_draw(), and put_pixel().
| int vt_fb_probe | ( | void | ) |
Sets up the virtual terminals on the framebuffer, if there is one the terminals can draw on, and clears the screen.
Definition at line 100 of file fb.c.
References bytes_pp, vt_display::cols, fb, fbdev_primary(), FONT_H, FONT_W, memset(), NULL, pitch, vt_display::rows, vt_fb_display, and vt_fb_probe().
Referenced by vt_fb_probe(), and vt_probe().
|
static |
Definition at line 25 of file fb.c.
Referenced by fb_draw(), put_pixel(), and vt_fb_probe().
|
static |
Definition at line 24 of file fb.c.
Referenced by fb_draw(), fbdev_ioctl(), fbdev_map(), fbdev_probe(), fbdev_vesa_map(), fbdev_vesa_prope(), fbdev_vesa_write(), fbdev_write(), and vt_fb_probe().
|
extern |
|
static |
Definition at line 25 of file fb.c.
Referenced by fb_draw(), and vt_fb_probe().
| struct vt_display vt_fb_display |
Definition at line 130 of file fb.c.
Referenced by vt_fb_probe(), and vt_probe().