miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
console.c File Reference
Include dependency graph for console.c:

Functions

void console_clear (void)
 Fills all 80x25 cells with DEFAULT_TEXT_ATTR space characters and calls vt_clear() to reset the VT parser state and hardware cursor.
void console_putchar (char c)
 Handles newline, carriage return, backspace, and scrolling via the VT core.
void console_hide_cursor (void)
 Sets VGA_CUR_DISABLE (bit 5) in CRT register 0x0A, making the hardware cursor invisible. Used when the terminal is in an intermediate state.
void console_show_cursor (void)
 Writes scanline range VGA_CUR_START_LINE..VGA_CUR_END_LINE to CRT registers 0x0A and 0x0B, making an underline cursor visible at the current position.
void console_init (void)
 Sets cursor position to (0,0), initialises the 16550 UART at COM1_PORT (0x3F8) to 9600 baud 8N1, clears the VGA framebuffer using vt_init(), and enables the hardware cursor. Called once at boot before any printk output.
void console_puts (char *s)
 Iterates over @s until the null terminator, calling console_putchar() for each character.