mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* keyboard state
@ 2001-09-26  8:26 Kamil Toman
  2001-09-26 12:34 ` Guest section DW
  0 siblings, 1 reply; 2+ messages in thread
From: Kamil Toman @ 2001-09-26  8:26 UTC (permalink / raw)
  To: linux-kernel

Hello,

	we need to backport 'cz' X layout to linux console. The actual
layout map can be seen at: http://artax.karlin.mff.cuni.cz/~toman/x/xkbd-cz.png 
There is a problem that linux kernel is able to recognize only:
- key itself
- SHITed key

but we need (obvious from the URLed picture) at least
- key itself
- SHIFTed key
- key when CAPSLOCK is on
- SHIFTed key while CAPSLOCK is on

This could be for examle solved with a slight modification of keyboard.c. The
KD_SHIFT constant might be changed to a variable like this:

 sed -e 's/key_map = key_maps\[shift_final ^ (1<<KG_SHIFT)\];$/key_map = \
 key_maps[shift_final ^ (1<<caps_eval)];/' \
 drivers/char/keyboard.c> \
 drivers/char/keyboard.c.new

i.e. replace KG_SHIFT with caps_eval which might be one of:
        #define KG_SHIFT        0
        #define KG_CTRL         2
        #define KG_ALT          3
        #define KG_ALTGR        1 
        #define KG_SHIFTL       4
        #define KG_SHIFTR       5
        #define KG_CTRLL        6
        #define KG_CTRLR        7
from include/linux/keyboard.h and then the rest of keyboard handling would
have to be changed to operate caps_eval accorddingly.

Maybe this is not best way how to do it. I'm open to anything else. Another
thing is that console-tools or kbd (which one is used today??) would have
to be changed to handle this new behaviour.

Thanks for any opinions,
Kamil Toman

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

* Re: keyboard state
  2001-09-26  8:26 keyboard state Kamil Toman
@ 2001-09-26 12:34 ` Guest section DW
  0 siblings, 0 replies; 2+ messages in thread
From: Guest section DW @ 2001-09-26 12:34 UTC (permalink / raw)
  To: Kamil Toman, linux-kernel

On Wed, Sep 26, 2001 at 10:26:11AM +0200, Kamil Toman wrote:

> but we need (obvious from the URLed picture) at least
> - key itself
> - SHIFTed key
> - key when CAPSLOCK is on
> - SHIFTed key while CAPSLOCK is on
> 
> This could be for examle solved with a slight modification of keyboard.c.

I think you can do all you want using loadkeys.
No kernel changes required.

Andries


[For further discussion, mail aeb@cwi.nl - letters sent here
are mostly lost.]

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

end of thread, other threads:[~2001-09-26 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-26  8:26 keyboard state Kamil Toman
2001-09-26 12:34 ` Guest section DW

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®