feat(console): customize interactive prompt to 'Airlys >>> ' and add backspace handling

This commit is contained in:
Adam Eehan committed 2026-10-23 13:42:41 +05:30
1 parent da6253030a
commit 08610afa9d
3 files changed
+20 -2

No files matched your search

+8 -1
View File
@@ -61,7 +61,14 @@ static void keyboard_callback(registers_t* regs) {
if (scancode < 128) {
char c = shift_pressed ? kbd_scancode_shift[scancode] : kbd_scancode_normal[scancode];
if (c != 0) {
vga_putchar(c);
if (c == '\n') {
vga_putchar('\n');
vga_set_color(VGA_COLOR_LIGHT_CYAN, VGA_COLOR_BLACK);
vga_puts("Airlys >>> ");
vga_set_color(VGA_COLOR_WHITE, VGA_COLOR_BLACK);
} else {
vga_putchar(c);
}
}
}
}