mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
17 lines
301 B
C
17 lines
301 B
C
#ifndef _TTY_H
|
|
#define _TTY_H
|
|
|
|
/* VGA Text mode */
|
|
#define VGA_ATTR(_fg, _bg) ((_fg) | ((_bg) << 4)
|
|
#define VGA_WIDTH 80
|
|
#define VGA_HEIGHT 25
|
|
#define VGA_MEMORY 0xb8000
|
|
|
|
void tty_init(void);
|
|
void tty_clear(void);
|
|
void tty_setattr(uint8_t attr);
|
|
void tty_putc(char c);
|
|
void tty_puts(char* s);
|
|
|
|
#endif
|