I seem to remember that there is already a dvorak key map somewhere in Plan 9. I was able to just use it.
On 03/12/12 01:08, Bakul Shah wrote:
> On Mon, 03 Dec 2012 00:45:29 GMT Murray Colpman <muzerakascooby@gmail.com> wrote:
>> When I run the kbmap program, attempting to set a map flashes up an
>> error about not being able to find /dev/kbmap. Looking at the manpages,
>> it seems that /dev/kbmap is supposed to be brought in with bind -a
>> '#kappa' /dev (with kappa obviously replaced with the actual kappa
>> letter). I did snarf the kappa from the manpage, and I also tried typing
>> it on the keyboard in various ways (compose, *, k for instance), so I
>> don't think that the issue is that I'm unable to type kappa correctly.
>> Anyway, when I run this bind command, I get "bind: #kappa: unknown
>> device in # filename" (again, kappa replaced with the actual kappa).
>
> You need to compile the driver in. Add
> kbmap
> to the dev section in config file /sys/src/9/bcm/pi. mk and
> then copy 9pi to the dos partition.
>
> dossrv -f /dev/sdM0/dos
> mount -c /sv/dos /n/dos
> cp /sys/src/9/bcm/9pi /n/dos/9pi
> fshalt
>
Thank you very much for the instructions!
Just tried it, kbmap now works perfectly, and I have now set the
keyboard map in my lib/profile. It all works :D - now I just have to
hack together a UK Dvorak - the map files look easy enough to fiddle
with. I'll do this tomorrow as I should really be sleeping now, though.
Thanks a lot!
Murray Colpman.