Compare commits
2 Commits
40b7dcedf8
...
8d0f80f821
Author | SHA1 | Date | |
---|---|---|---|
8d0f80f821 | |||
4cedfda19b |
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user