- // no lxmalloc here! This can only be used within kernel, but here, we are in a dedicated process!
- // any access to kernel method must be done via syscall
-
- struct kdb_keyinfo_pkt keyevent;
- while (1)
- {
- if (!kbd_recv_key(&keyevent)) {
- // yield();
- continue;
- }
- if ((keyevent.state & KBD_KEY_FPRESSED) && (keyevent.keycode & 0xff00) <= KEYPAD) {
- tty_put_char((char)(keyevent.keycode & 0x00ff));
- tty_sync_cursor();
- }
- }
-
-
- spin();