From 3e2e8a9156d288d230bbcd722bc91c4b3e4b21e1 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Mon, 7 Jun 2021 20:49:20 +0300 Subject: [PATCH] foo --- sys1/kern/src/con.h | 8 ++++++++ sys1/kern/src/vga.h | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 sys1/kern/src/con.h create mode 100644 sys1/kern/src/vga.h 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_ */ -- 1.7.10.4