bo-yang / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

alt+stuff (latin compose sequences from /lib/keyboard) #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Do you want the total alt+stuff?
(Yes, I do)

Original issue reported on code.google.com by a...@phicode.de on 25 May 2011 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by cinap_le...@felloff.net on 26 May 2011 at 5:15

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 26 May 2011 at 5:21

GoogleCodeExporter commented 9 years ago
this turns out to be a harder problem than i thought.

on my first attempt, i reimplemented the latin stuff
in kbdfs, but this doesnt do you any good, because
the new rio doesnt read /dev/cons at all, but uses
/dev/kbd for keyboard input and falls back to
/dev/cons if its not available. (drawterm)

one could allow having /dev/kbd and /dev/cons open
at the same time and have both produce data, but this
sounds just wrong and isnt want you want in most
cases.

on the other hand, rio could handle latin composing itself
and this time parse /lib/keyboard instead of having a hard
coded table linked in.

but it would be code duplication indeed... :-/

Original comment by cinap_le...@felloff.net on 27 May 2011 at 2:14

GoogleCodeExporter commented 9 years ago
changed the format of /dev/kbd:
k<decomposed chars down>\0   - send on keydown
K<decomposed chars down>\0   - send on keyup
c<composed char>\0           - send on key down, when key is composed and on 
keyboard repeat

Original comment by cinap_le...@felloff.net on 27 May 2011 at 8:42