From: nigel@9fs.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] keyboard maps
Date: Thu, 16 May 2002 12:06:35 +0100 [thread overview]
Message-ID: <7b3b7e2e36293181b6fe3424107ad3e7@9fs.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
I enclose a UK keyboard map. More changes will be required,
but this corresponds to the map I've used for a time.
I also attach mkkbmap with a fix to make it generate
nkbmaps correctly.
[-- Attachment #2: Type: message/rfc822, Size: 1384 bytes --]
From: Fco.J.Ballesteros <nemo@plan9.escet.urjc.es>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] keyboard maps
Date: Thu, 16 May 2002 12:00:39 +0200
Message-ID: <fc406cbeb0b9e7656b37a77398f75eae@plan9.escet.urjc.es>
All the maps you sent are in place.
http://plan9.escet.urjc.es/export/kbd.tgz
Would it be keyboard the right man page
to tell users about the Fn thing to change maps?
[-- Attachment #3: kbd_uk.c --]
[-- Type: text/plain, Size: 3165 bytes --]
#include "u.h"
#include "libc.h"
#include "kbd.h"
/*
* The codes at 0x79 and 0x81 are produed by the PFU Happy Hacking keyboard.
* A 'standard' keyboard doesn't produce anything above 0x58.
*/
Rune kbtab_uk[] =
{
[0x00] No, 0x1b, '1', '2', '3', '4', '5', '6',
[0x08] '7', '8', '9', '0', '-', '=', '\b', '\t',
[0x10] 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
[0x18] 'o', 'p', '[', ']', '\n', Ctrl, 'a', 's',
[0x20] 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';',
[0x28] '\'', '`', Shift, '#', 'z', 'x', 'c', 'v',
[0x30] 'b', 'n', 'm', ',', '.', '/', Shift, '*',
[0x38] Compose, ' ', Ctrl, KF|1, KF|2, KF|3, KF|4, KF|5,
[0x40] KF|6, KF|7, KF|8, KF|9, KF|10, Num, Scroll, '7',
[0x48] '8', '9', '-', '4', '5', '6', '+', '1',
[0x50] '2', '3', '0', '.', No, No, '\\', KF|11,
[0x58] KF|12, No, No, No, No, No, No, No,
[0x60] No, No, No, No, No, No, No, No,
[0x68] No, No, No, No, No, No, No, No,
[0x70] No, No, No, No, No, No, No, No,
[0x78] No, View, No, Up, No, No, No, No,
};
Rune kbtabshift_uk[] =
{
[0x00] No, 0x1b, '!', '"', '#', '$', '%', '^',
[0x08] '&', '*', '(', ')', '_', '+', '\b', '\t',
[0x10] 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I',
[0x18] 'O', 'P', '{', '}', '\n', Ctrl, 'A', 'S',
[0x20] 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':',
[0x28] '@', '~', Shift, '~', 'Z', 'X', 'C', 'V',
[0x30] 'B', 'N', 'M', '<', '>', '?', Shift, '*',
[0x38] Compose, ' ', Ctrl, KF|1, KF|2, KF|3, KF|4, KF|5,
[0x40] KF|6, KF|7, KF|8, KF|9, KF|10, Num, Scroll, '7',
[0x48] '8', '9', '-', '4', '5', '6', '+', '1',
[0x50] '2', '3', '0', '.', No, No, '|', KF|11,
[0x58] KF|12, No, No, No, No, No, No, No,
[0x60] No, No, No, No, No, No, No, No,
[0x68] No, No, No, No, No, No, No, No,
[0x70] No, No, No, No, No, No, No, No,
[0x78] No, Up, No, Up, No, No, No, No,
};
Rune kbtabesc1_uk[] =
{
[0x00] No, No, No, No, No, No, No, No,
[0x08] No, No, No, No, No, No, No, No,
[0x10] No, No, No, No, No, No, No, No,
[0x18] No, No, No, No, '\n', Ctrl, No, No,
[0x20] No, No, No, No, No, No, No, No,
[0x28] No, No, Shift, No, No, No, No, No,
[0x30] No, No, No, No, No, '/', No, Print,
[0x38] Compose, No, No, No, No, No, No, No,
[0x40] No, No, No, No, No, No, Break, Home,
[0x48] Up, Pgup, No, Left, No, Right, No, End,
[0x50] Down, Pgdown, Ins, Del, No, No, No, No,
[0x58] No, No, No, No, No, No, No, No,
[0x60] No, No, No, No, No, No, No, No,
[0x68] No, No, No, No, No, No, No, No,
[0x70] No, No, No, No, No, No, No, No,
[0x78] No, Up, No, No, No, No, No, No,
};
Rune kbtabalt_uk[] =
{
[0x00] No, No, No, No, No, No, No, No,
[0x08] No, No, No, No, No, No, No, No,
[0x10] No, No, No, No, No, No, No, No,
[0x18] No, No, No, No, No, No, No, No,
[0x20] No, No, No, No, No, No, No, No,
[0x28] No, No, No, No, No, No, No, No,
[0x30] No, No, No, No, No, No, No, No,
[0x38] Compose, No, No, No, No, No, No, No,
[0x40] No, No, No, No, No, No, No, No,
[0x48] No, No, No, No, No, No, No, No,
[0x50] No, No, No, No, No, No, No, No,
[0x58] No, No, No, No, No, No, No, No,
[0x60] No, No, No, No, No, No, No, No,
[0x68] No, No, No, No, No, No, No, No,
[0x70] No, No, No, No, No, No, No, No,
[0x78] No, No, No, No, No, No, No, No,
};
[-- Attachment #4: mkkbmap --]
[-- Type: text/plain, Size: 543 bytes --]
#!/bin/rc
echo '#include "u.h"'
echo '#include "kbd.h"'
echo
maps=`{grep kbd_ $CONF | sed 's/kbd_//g'}
if (~ $maps '')
maps=us
for ( a in $maps) {
echo 'extern Rune kbtab_'^$a^'[];'
echo 'extern Rune kbtabshift_'^$a^'[];'
echo 'extern Rune kbtabesc1_'^$a^'[];'
echo 'extern Rune kbtabalt_'^$a^'[];'
}
echo
echo 'Kbmap kbmaps[NKBMAPS] ='
echo '{'
for ( a in $maps) {
echo ' {kbtab_'^$a^', kbtabshift_'^$a^', kbtabesc1_'^$a^', kbtabalt_'^$a' },'
}
echo '};'
echo 'int nkbmaps='^`{grep kbd_ $CONF | wc -l}^';'
next reply other threads:[~2002-05-16 11:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-16 11:06 nigel [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-01 21:48 Heiko Dudzus
2005-11-01 22:34 ` Russ Cox
2005-11-02 19:49 ` Heiko Dudzus
2004-03-16 14:31 David Presotto
2003-11-17 18:24 Fco.J.Ballesteros
2003-11-17 18:34 ` ron minnich
2003-11-17 18:41 ` Fco.J.Ballesteros
2003-11-17 19:56 ` mirtchov
2003-11-18 8:13 ` Fco.J.Ballesteros
2002-05-20 9:55 Joel Salomon
2002-05-21 8:47 ` Joel Salomon
2002-05-16 13:18 rob pike, esq.
2002-05-16 10:00 Fco.J.Ballesteros
2002-05-14 21:36 rob pike, esq.
2002-05-14 20:15 rob pike, esq.
2002-05-14 19:40 andrey mirtchovski
2002-05-14 18:50 andrey mirtchovski
2002-05-14 17:37 Fco.J.Ballesteros
2002-05-15 9:05 ` Boyd Roberts
2002-05-15 21:34 ` Pavel Mihaylov
2002-05-16 10:02 ` Boyd Roberts
2002-05-18 19:57 ` Pavel Mihaylov
2002-05-21 10:43 ` Boyd Roberts
2002-05-21 11:35 ` Pavel Mihaylov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b3b7e2e36293181b6fe3424107ad3e7@9fs.org \
--to=nigel@9fs.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).