void tty_set_textcolor_fg(int id, textcolor_t fg)
Set the foreground color used to display text on the virtual console.
textcolor
Color values used for tty text.
void tty_activate(int id)
Activate the requested virtual console.
void tty_printc(int id, char ch)
Output a single character to the virtual console using the console's current text color and screen po...
void tty_print(int id, const char *str)
Output a null-terminated string to the virtual console using the console's current text color and scr...
void tty_getpos(int id, screenpos_t *pos)
Get the current position of the cursor on the virtual console.
uint8_t y
y position in range [0:24].
textcolor_t tty_get_textcolor_fg(int id)
Get the foreground color used to display text on the virtual console.
enum textcolor textcolor_t
void tty_set_textcolor_bg(int id, textcolor_t bg)
Set the background color used to display text on the virtual console.
void tty_set_textcolor(int id, textcolor_t fg, textcolor_t bg)
Set the foreground and background colors used to display text on the virtual console.
int tty_printf(int id, const char *format,...)
Output a printf-formatted string to the virtual console using the console's current text color and sc...
void tty_clear(int id)
Clear the virtual console screen's contents using the current text background color.
void tty_init()
Initialize all virtual consoles.
void tty_setpos(int id, screenpos_t pos)
Set the position of the cursor on the virtual console.
tty screen text position.
uint8_t x
x position in range [0:79].
textcolor_t tty_get_textcolor_bg(int id)
Get the background color used to display text on the virtual console.