console.h File Reference
#include <types.h>
Go to the source code of this file.
Functions |
| void | console_initialize (int vmode, void *fb, int x, int y, int w, int h, int fw, int fh, u8 font[]) |
| | Initializes a console (and maps to printf).
|
| void | console_simple_init (int vmode, void *fb) |
| | Initializes the default console.
|
| void | console_set_framebuffer (void *fb) |
| | Changes the active framebuffer YUV pointer.
|
| void | print_str (const char *str, size_t len) |
| | Prints a string to the screen.
|
| int | gfx_printf (const char *fmt,...) __attribute__((deprecated)) |
| | Prints a formatted string to the screen. (DEPRECATED).
|
Detailed Description
Functions to manipulate a visual text console using functions from video_low.h
Function Documentation
| void console_initialize |
( |
int |
vmode, |
|
|
void * |
fb, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
fw, |
|
|
int |
fh, |
|
|
u8 |
font[] | |
|
) |
| | |
Initializes a console (and maps to printf).
Initializes a console using specified parameters.
- Parameters:
-
| vmode | the video mode being used. |
| fb | the YUV framebuffer to draw the console to. |
| x | the X offset of the framebuffer in pixels. |
| y | the Y offset of the framebuffer in pixels. |
| w | the width of the framebuffer in characters. |
| h | the height of the framebuffer in characters. |
| fw | the width of each font character. |
| fh | the height of each font character. |
| font | the font in a packed 1-bit format. |
| void console_set_framebuffer |
( |
void * |
fb |
) |
|
Changes the active framebuffer YUV pointer.
- Parameters:
-
| fb | the new YUV framebuffer to draw the console to. |
| void console_simple_init |
( |
int |
vmode, |
|
|
void * |
fb | |
|
) |
| | |
Initializes the default console.
Initializes a console using default values.
- Parameters:
-
| vmode | the video mode being used. |
| fb | the YUV framebuffer to draw the console to. |
| int gfx_printf |
( |
const char * |
fmt, |
|
|
|
... | |
|
) |
| | |
Prints a formatted string to the screen. (DEPRECATED).
This function is deprecated. Please print directly to stdout instead.
- Parameters:
-
| fmt | the formatted string. |
| ... | the formatting data. |
| void print_str |
( |
const char * |
str, |
|
|
size_t |
len | |
|
) |
| | |
Prints a string to the screen.
- Parameters:
-
| str | the string. |
| len | how many characters the string contains. |