9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] keyboard maps
@ 2002-05-14 17:37 Fco.J.Ballesteros
  2002-05-15  9:05 ` Boyd Roberts
  2002-05-15 21:34 ` Pavel Mihaylov
  0 siblings, 2 replies; 25+ messages in thread
From: Fco.J.Ballesteros @ 2002-05-14 17:37 UTC (permalink / raw)
  To: nemo, 9fans

Two of my students ({jvergara,jgato}@gsyc.escet.urjc.es) have
changed the keyboard driver to support static maps allowing
to switch at run time between them using the function keys.

The set of maps desired can be specified in the config file.
New maps can be added by creating a .c file with just the tables.

Since some of you thought it was nice to be able to change the
map through devkbmap to learn to build new tables, I'm willing to
add that feature to this driver.

I'm also willing to collect whatever kbd tables you may have built
and add them to this driver.

Let me know what you think

The driver is at http://plan9.escet.urjc.es/export/kbd.tgz

hth



^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-14 18:50 andrey mirtchovski
  0 siblings, 0 replies; 25+ messages in thread
From: andrey mirtchovski @ 2002-05-14 18:50 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

here's a file for typinng in cyrillic, with the bulgarian keyboard
layout..  i've put the necessary changes to add it as the third
keyboard mapping, but i'm sure everyone on the list (who cares) is
able to do it by themselves, so no diff for any other files...

for those interested: bug or a feature?  the cyrillic characters in
p9's utf fonts lack a capital 'ъ'.  russian does not have it,
bulgarian does, even though we have only one word that starts with it
-- 'ъгъл', meaning 'angle'...

андрей

[-- Attachment #2: kbd_bg.c --]
[-- Type: text/plain, Size: 3325 bytes --]

/* bulgarian phonetic keyboard mapping. note the lack of capital 'ъ' */
#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_bg[] =
{
[0x00]	No,	0x1b,	'1',	'2',	'3',	'4',	'5',	'6',
[0x08]	'7',	'8',	'9',	'0',	'-',	'=',	'\b',	'\t',
[0x10]	'я',	'в,	'е',	'р',	'т',	'ъ',	'у',	'и',
[0x18]	'о',	'п',	'ш', 	'щ',	'\n',	Ctrl,	'а',	'с',
[0x20]	'д',	'ф',	'г',	'х',	'й',	'к',	'л',	';',
[0x28]	'\'',	'ч',	Shift,	'ю',	'з',	'ь',	'ц',	'ж',
[0x30]	'б',	'н',	'м',	',',	'.',	'/',	Shift,	'*',
[0x38]	Latin,	' ',	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,	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_bg[] =
{
[0x00]	No,	0x1b,	'!',	'@',	'#',	'$',	'%',	'^',
[0x08]	'&',	'*',	'(',	')',	'_',	'+',	'\b',	'\t',
[0x10]	'Я',	'В',	'Е',	'Р',	'Т',	'ъ',	'У',	'И',
[0x18]	'О',	'П',	'Ш',	'Щ',	'\n',	Ctrl,	'А',	'С',
[0x20]	'Д',	'Ф',	'Г',	'Х',	'Й',	'К',	'Л',	':',
[0x28]	'"',	'Ч',	Shift,	'Ю',	'З',	'ь',	'Ц',	'Ж',
[0x30]	'Б',	'Н',	'М',	'<',	'>',	'?',	Shift,	'*',
[0x38]	Latin,	' ',	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,	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_bg[] =
{
[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]	Latin,	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_bg[] =
{
[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]	Latin,	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,
};--upas-twknbbkoeqbzexbchfjdczjqva--

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-14 19:40 andrey mirtchovski
  0 siblings, 0 replies; 25+ messages in thread
From: andrey mirtchovski @ 2002-05-14 19:40 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]


> What is the Unicode value of the symbol?  Does it exist in
> Lucida?  More broadly, in what font doesn't it exist? There
> are many to choose from.

the characters exits in the fonts, but there's no way to type them
using a key sequence, hence they don't show up in /lib/keyboard, where
i was looking for them.  immediately after emailing the file i went to
unicode.org and found their appropriate unicode values:

0x042A = Ъ
0x042C = Ь

they most certainly show up in /lib/font/bit/pelm/euro.8.font
which is my console font of choice :)

attached is the revised kbd_bg.c file

andrey

[-- Attachment #2: kbd_bg.c --]
[-- Type: text/plain, Size: 3313 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_bg[] =
{
[0x00]	No,	0x1b,	'1',	'2',	'3',	'4',	'5',	'6',
[0x08]	'7',	'8',	'9',	'0',	'-',	'=',	'\b',	'\t',
[0x10]	L'я',	L'в',	L'е',	L'р',	L'т',	L'ъ',	L'у',	L'и',
[0x18]	L'о',	L'п',	L'ш', 	L'щ',	'\n',	Ctrl,	L'а',	L'с',
[0x20]	L'д',	L'ф',	L'г',	L'х',	L'й',	L'к',	L'л',	';',
[0x28]	'\'',	L'ч',	Shift,	L'ю',	L'з',	L'ь',	L'ц',	L'ж',
[0x30]	L'б',	L'н',	L'м',	',',	'.',	'/',	Shift,	'*',
[0x38]	Latin,	' ',	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,	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_bg[] =
{
[0x00]	No,	0x1b,	'!',	'@',	'#',	'$',	'%',	'^',
[0x08]	'&',	'*',	'(',	')',	'_',	'+',	'\b',	'\t',
[0x10]	L'Я',	L'В',	L'Е',	L'Р',	L'Т',	L'Ъ',	L'У',	L'И',
[0x18]	L'О',	L'П', 	L'Ш',	L'Щ',	'\n',	Ctrl,	L'А',	L'С',
[0x20]	L'Д',	L'Ф',	L'Г',	L'Х',	L'Й',	L'К',	L'Л',	':',
[0x28]	'"',	L'Ч',	Shift,	L'Ю',	L'З',	L'Ь',	L'Ц',	L'Ж',
[0x30]	L'Б',	L'Н',	L'М',	'<',	'>',	'?',	Shift,	'*',
[0x38]	Latin,	' ',	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,	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_bg[] =
{
[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]	Latin,	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_bg[] =
{
[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]	Latin,	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,
};--upas-poycldajitifoemmhshtvtudua--

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-14 20:15 rob pike, esq.
  0 siblings, 0 replies; 25+ messages in thread
From: rob pike, esq. @ 2002-05-14 20:15 UTC (permalink / raw)
  To: 9fans

> the cyrillic characters in
> p9's utf fonts lack a capital 'ъ'.

What is the Unicode value of the symbol?  Does it exist in
Lucida?  More broadly, in what font doesn't it exist? There
are many to choose from.

-rob



^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-14 21:36 rob pike, esq.
  0 siblings, 0 replies; 25+ messages in thread
From: rob pike, esq. @ 2002-05-14 21:36 UTC (permalink / raw)
  To: 9fans

What key sequence should trigger them in /lib/keyboard?  We can
just add them.


-rob



^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-16 10:00 Fco.J.Ballesteros
  0 siblings, 0 replies; 25+ messages in thread
From: Fco.J.Ballesteros @ 2002-05-16 10:00 UTC (permalink / raw)
  To: 9fans

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?


^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-16 11:06 nigel
  0 siblings, 0 replies; 25+ messages in thread
From: nigel @ 2002-05-16 11:06 UTC (permalink / raw)
  To: 9fans

[-- 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}^';'

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [9fans] keyboard maps
@ 2002-05-16 13:18 rob pike, esq.
  0 siblings, 0 replies; 25+ messages in thread
From: rob pike, esq. @ 2002-05-16 13:18 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

> Would it be keyboard the right man page
> to tell users about the Fn thing to change maps?
keyboard(6) sounds good. make it clear this applies
to the PC only, as it stands.

[-- Attachment #2: Type: message/rfc822, Size: 1392 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?

^ permalink raw reply	[flat|nested] 25+ messages in thread
* [9fans] keyboard maps
@ 2002-05-20  9:55 Joel Salomon
  2002-05-21  8:47 ` Joel Salomon
  0 siblings, 1 reply; 25+ messages in thread
From: Joel Salomon @ 2002-05-20  9:55 UTC (permalink / raw)
  To: 9fans

Along with the key maps is there support for bidi text as in inferno's
brutus? utf.ms/ps/html says this is not implemented, but the papers
have not been updated  since they were written and this one is at
least 5 years old. There should, by now, be plenty of implementations
to model on.
Joel


^ permalink raw reply	[flat|nested] 25+ messages in thread
* [9fans] keyboard maps
@ 2003-11-17 18:24 Fco.J.Ballesteros
  2003-11-17 18:34 ` ron minnich
  2003-11-17 19:56 ` mirtchov
  0 siblings, 2 replies; 25+ messages in thread
From: Fco.J.Ballesteros @ 2003-11-17 18:24 UTC (permalink / raw)
  To: 9fans

I've changed the processing of kbd maps in our local driver
to do all the kbdmap thing at user level (the code is in fact
inside the usb user-level kbd driver, that now also knows how
to work with a regular keyboard (i.e. a non-usb one)).

You'd need the sys/src/9/boot/boot.c, the sys/src/9/pc/kbd.c and
the sys/src/cmd/usb/hid/ files I've put in /n/sources/nemo.
We've been using it for a while and it seems to work fine.

Our boot(8) starts usbd and usb/usbhid. Usbhid services
the usb keyboard if it finds one, and the console keyboard
if it finds no usb kbd. In any case, it implements the maps and
the latin1 composition. Our kernel driver is servicing just a us
map.

BTW, we're no longer using what was known as the
`alternate keyboard driver' and therefore I removed it from
/n/sources/nemo. I sincerelly think that the new one can
service all of us well.

I've tried to put all the maps I had into the new program (usb/hid).
If any of you use it and have any problem with any map or any
other thing, let me know.

hth

PS: There are also manual pages updated under /n/sources/nemo



^ permalink raw reply	[flat|nested] 25+ messages in thread
* [9fans] keyboard maps
@ 2004-03-16 14:31 David Presotto
  0 siblings, 0 replies; 25+ messages in thread
From: David Presotto @ 2004-03-16 14:31 UTC (permalink / raw)
  To: 9fans

Anyone have keyboard maps other than qwerty and azerty for the
Boyd/Forsyth devkbmap stuff?


^ permalink raw reply	[flat|nested] 25+ messages in thread
* [9fans] keyboard maps
@ 2005-11-01 21:48 Heiko Dudzus
  2005-11-01 22:34 ` Russ Cox
  0 siblings, 1 reply; 25+ messages in thread
From: Heiko Dudzus @ 2005-11-01 21:48 UTC (permalink / raw)
  To: 9fans

After making a replica/pull today, I have problems with the kbmaps in
/sys/lib/kbmap. The third field of each entry (value of unicode
character) has changed from hexadecimal value to literal
representation (e.g. 'o instead of 0x6f and ^[ instead of 0x1b).

Writing a kbmap with representations like ^X for control characters
to /dev/kbmap fails with Ebadarg: "bad arg in system call" (although
that representation conforms to the new version of kbmap(3)).

The kernel is 9pc (binary from sources), dated on Oct 27.  

I stepped back to the old kbmaps as a workaround but thought I should
mention the problem. 


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2005-11-02 19:49 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-14 17:37 [9fans] keyboard maps 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
2002-05-14 18:50 andrey mirtchovski
2002-05-14 19:40 andrey mirtchovski
2002-05-14 20:15 rob pike, esq.
2002-05-14 21:36 rob pike, esq.
2002-05-16 10:00 Fco.J.Ballesteros
2002-05-16 11:06 nigel
2002-05-16 13:18 rob pike, esq.
2002-05-20  9:55 Joel Salomon
2002-05-21  8:47 ` Joel Salomon
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
2004-03-16 14:31 David Presotto
2005-11-01 21:48 Heiko Dudzus
2005-11-01 22:34 ` Russ Cox
2005-11-02 19:49   ` Heiko Dudzus

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).