Compare commits

..

2 Commits

Author SHA1 Message Date
8d0f80f821 tb Clear screen shortcut 2025-09-19 20:07:17 +02:00
4cedfda19b Fix some keyboard keypressed still being missed 2025-09-19 20:03:36 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -218,11 +218,9 @@ void intr_handleintr(IntrStackFrame *frame) {
intr_eoi(frame->trapnum - INTR_IRQBASE);
if (c >= 0) {
uint8_t *bytes = (uint8_t *)&c;
spinlock_acquire(&PS2KB_BUF.spinlock);
for (size_t i = 0; i < sizeof(c); i++) {
rbuf_push(&PS2KB_BUF.rbuf, bytes[i]);
}
spinlock_release(&PS2KB_BUF.spinlock);
}
break;
}

View File

@ -119,6 +119,11 @@ void do_mode_interactive(void) {
uprintf("\n");
goto begin;
break;
case C('L'):
uprintf(ANSIQ_CUR_SET(0, 0));
uprintf(ANSIQ_SCR_CLR_ALL);
goto begin;
break;
}
char chr = kbchr & 0xFF;