jor1k
jor1k copied to clipboard
Enhance code for keyboard handling
Correct handling of the input is a very difficult task in Javascript. At the moment, jor1k supports two input devices.
- A terminal input
- A opencore-keyboard device.
Between 1. and 2. is switched, if the framebuffer or the terminal is selected. The code to handle both keyboards is inconsistent and merged together in form of a small hack. In order to allow multiple terminals in future, it is necessary to clean up the whole keyboard input code.
I added the Terminal Input/Output Wiki Page to get help on this issue.
Yes, that's basically how it works for the terminal and UART. Nice summary. Still, I don't like the keyboard handling. In future I will not use the UART anymore, but the virtio provided terminal. That is a little bit easier and supports also to resize the terminal.