From: John Tsiombikas Date: Mon, 7 Jun 2021 17:49:20 +0000 (+0300) Subject: foo X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=3sys;a=commitdiff_plain;h=3e2e8a9156d288d230bbcd722bc91c4b3e4b21e1 foo --- diff --git a/sys1/kern/src/con.h b/sys1/kern/src/con.h new file mode 100644 index 0000000..9eb776a --- /dev/null +++ b/sys1/kern/src/con.h @@ -0,0 +1,8 @@ +#ifndef CON_H_ +#define CON_H_ + +void con_init(void); + +void con_putchar(int c); + +#endif /* CON_H_ */ diff --git a/sys1/kern/src/vga.h b/sys1/kern/src/vga.h new file mode 100644 index 0000000..19571f3 --- /dev/null +++ b/sys1/kern/src/vga.h @@ -0,0 +1,19 @@ +#ifndef VGA_H_ +#define VGA_H_ + +enum { + VGA_BLACK, + VGA_BLUE, + VGA_GREEN, + VGA_CYAN, + VGA_RED, + VGA_MAGENTA, + VGA_YELLOW, + VGA_WHITE +}; +#define VGA_BRIGHT 0x80 + +void vga_setcolor(int fg, int bg); +void vga_setcursor(int x, int y); + +#endif /* VGA_H_ */