aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/graphics')
-rw-r--r--src/kernel/graphics/vesa.c2
-rw-r--r--src/kernel/graphics/vesa.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c
index 94f53c6..3f8a9ba 100644
--- a/src/kernel/graphics/vesa.c
+++ b/src/kernel/graphics/vesa.c
@@ -287,6 +287,8 @@ void vesa_draw_char(char ch) {
} else if (ch == '\n') {
terminal_x = 0;
terminal_y += font_height + 2;
+ } else if (ch == '\t') {
+ terminal_x += 4 * (font_width + 2);
}
if (terminal_x >= vbe_width) {
diff --git a/src/kernel/graphics/vesa.h b/src/kernel/graphics/vesa.h
index 649c6ee..748f8d0 100644
--- a/src/kernel/graphics/vesa.h
+++ b/src/kernel/graphics/vesa.h
@@ -128,6 +128,8 @@ void vesa_clear();
*/
void vesa_set_font(int height);
+void vesa_draw_char(char ch);
+
/**
* Draw a char from keyboard
* @param ch The character