maintenance

This commit is contained in:
nub31
2025-08-29 15:51:05 +02:00
parent 827d27e3e3
commit 3e510a3e1b
6 changed files with 33 additions and 20 deletions

View File

@@ -69,6 +69,12 @@ void vga_print_char_colored(char character, vga_color_t color)
cursor_col = 0;
break;
}
case '\t':
{
uint8_t remainter = cursor_col % 4;
cursor_col += remainter == 0 ? 4 : remainter;
break;
}
default:
{
vga_char c = {
@@ -110,11 +116,6 @@ void vga_print_char_colored(char character, vga_color_t color)
}
}
void vga_print_char(char character)
{
vga_print_char_colored(character, vga_default_color());
}
void vga_print_colored(const char* string, vga_color_t color)
{
for (uint8_t i = 0; string[i] != '\0'; i++)
@@ -123,11 +124,6 @@ void vga_print_colored(const char* string, vga_color_t color)
}
}
void vga_print(const char* string)
{
vga_print_colored(string, vga_default_color());
}
void vga_print_success(void)
{
vga_print("[ ");