Handle ps2 keyboard via special process

This commit is contained in:
2025-09-07 20:53:36 +02:00
parent 4f3053bc8e
commit 9644ad0b4e
16 changed files with 312 additions and 40 deletions

View File

@ -5,6 +5,8 @@
#include <system/ioctl.h>
#include <uprintf.h>
#include <ansiq/all.h>
#include <sysdefs/ipcpipe.h>
#include <system/ipcpipe.h>
void main(void) {
debugprint(ANSIQ_SCR_CLR_ALL);
@ -24,6 +26,15 @@ void main(void) {
uprintf("Hello world using uprintf\n");
while(1) {
int32_t kbchar;
int32_t read = ipcpipe(1, 0, IPCPIPE_READ, (uint8_t *)&kbchar, sizeof(kbchar));
if (read > 0 && (kbchar >= 0x20 && kbchar <= 0x7F)) {
uprintf("%c", (char)kbchar);
}
}
for(;;);
}