From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Foreign keyboard layout In-Reply-To: Your message of "Wed, 19 Sep 2001 12:52:51 +0200." <20010919122949.H1071-100000@groucho.hvm.sas.junta-andalucia.es> From: Quinn Dunkan Message-Id: <20010919165255.1401E90157@yak.ugcs.caltech.edu> Date: Wed, 19 Sep 2001 09:52:50 -0700 Topicbox-Message-UUID: eddf3f1c-eac9-11e9-9e20-41e7f4b1d025 > On Tue, 18 Sep 2001, Boyd Roberts wrote: > > > iirc, there is a driver that has a mapping file which you > > can read/write tuples of the form: > > > > shift scancode rune > > > Thanks. Please, do you remember what driver and/or file(s) are you talking > about? > I've found hardcoded keyboard mapping in both: > /sys/src/9/$cputype/kbd.c (machine-dependent kernel code) > /sys/src/libcontrol/keyboard.c > Maybe there are other files like these. There's a program that provides its own /dev/cons that translates from the old /dev/cons and provides /dev/kbd to configure the translation (you write old_unicode new_unicode pairs to it). I use it to get a dvorak layout. It was posted to the list a while back--take a look at the archives. I believe it was called kbd.c or something. Unfortunately I managed to lose my copy of the src, and I can't find it in the archives or the wiki. It doesn't work perfectly, but it's useful and small and doesn't require messing with the kernel.