aboutsummaryrefslogtreecommitdiff
path: root/kernel/io/vga
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/io/vga')
-rw-r--r--kernel/io/vga/text_mode_diplay.h4
-rw-r--r--kernel/io/vga/text_mode_display.c6
-rw-r--r--kernel/io/vga/text_mode_display.h5
3 files changed, 11 insertions, 4 deletions
diff --git a/kernel/io/vga/text_mode_diplay.h b/kernel/io/vga/text_mode_diplay.h
deleted file mode 100644
index 9441925..0000000
--- a/kernel/io/vga/text_mode_diplay.h
+++ /dev/null
@@ -1,4 +0,0 @@
-void vga_clear_screen();
-void vga_print(char *msg);
-void vga_print_ln(char *msg);
-void vga_set_text_colour(int foreground, int background); \ No newline at end of file
diff --git a/kernel/io/vga/text_mode_display.c b/kernel/io/vga/text_mode_display.c
index 4844524..bfee909 100644
--- a/kernel/io/vga/text_mode_display.c
+++ b/kernel/io/vga/text_mode_display.c
@@ -39,4 +39,10 @@ void vga_print_ln(char *msg)
void vga_set_text_colour(int foreground, int background)
{
char_attribute_byte = (background << 4) | foreground;
+}
+
+void vga_print_raw(unsigned char byte)
+{
+ video_ram[cursor_pos++] = byte;
+ video_ram[cursor_pos++] = char_attribute_byte;
} \ No newline at end of file
diff --git a/kernel/io/vga/text_mode_display.h b/kernel/io/vga/text_mode_display.h
new file mode 100644
index 0000000..48bae85
--- /dev/null
+++ b/kernel/io/vga/text_mode_display.h
@@ -0,0 +1,5 @@
+void vga_clear_screen();
+void vga_print(char *msg);
+void vga_print_ln(char *msg);
+void vga_set_text_colour(int foreground, int background);
+void vga_print_raw(unsigned char byte); \ No newline at end of file