diff options
author | Marvin Borner | 2019-10-30 21:18:08 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-30 21:18:08 +0100 |
commit | 836e4eba09e73612b00f268e124750e78aeaa225 (patch) | |
tree | ee0876bc2ba05498f87afb6a7b625bf652cb6708 /src/kernel/graphics | |
parent | 118898807865ba11f5d7754f6f0572a0403f8512 (diff) |
Added kind of working initrd support
Diffstat (limited to 'src/kernel/graphics')
-rw-r--r-- | src/kernel/graphics/vesa.c | 2 | ||||
-rw-r--r-- | src/kernel/graphics/vesa.h | 2 |
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 |