jor1k icon indicating copy to clipboard operation
jor1k copied to clipboard

Enhance code for keyboard handling

Open s-macke opened this issue 9 years ago • 2 comments

Correct handling of the input is a very difficult task in Javascript. At the moment, jor1k supports two input devices.

  1. A terminal input
  2. 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.

s-macke avatar Jul 22 '14 21:07 s-macke

I added the Terminal Input/Output Wiki Page to get help on this issue.

neelabhg avatar Apr 11 '16 00:04 neelabhg

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.

s-macke avatar Apr 12 '16 09:04 s-macke