9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: George Bronnikov <goga@rubinstein.mccme.ru>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] kbd.c
Date: Mon,  1 Apr 2002 10:50:20 +0400	[thread overview]
Message-ID: <Pine.LNX.4.30.0204011030060.22327-100000@donkey.bronnikov.mccme.ru> (raw)
In-Reply-To: <200204010047.g310lReH004506@theraft.strakt.com>

On Mon, 1 Apr 2002, Boyd Roberts wrote:

> caps lock is caps lock -- it should not be overloaded.

Well the key itself is overloaded as another Ctrl in the default keymap.
Moreover, I was not happy with the code for handling it -- it only worked
for symbols between 'a' and 'z'.

That said, of course my code was a hack on top of your hack, to let
me work in my own language with minimal effort.  I think what we need is:

1. Some key that can act as a sticky modifier -- that's why the current
kbd.c is inappropriate.  I like the idea of ^t^t n.

2. Some way to change keymaps on the fly.  This is why I'm not so fond of
Nemo's solution -- I don't want to recompile the kernel each time I need
another keymap.  Moreover, I don't want to write code in C each time I
need to define a keymap (did I misunderstand his proposal?).

3. I don't like the idea of having a builtin English qwerty and
making translations in userspace -- what's so special about qwerty?  What
shall we do with keyboards that have more keys than the standard English
one (like Japanese, if I correctly understand Kenji)?

On the other hand, userspace solution is more flexible, if only we can get
the raw input, something like keycodes, from the kernel.  But then again,
we would need to imitate not just /dev/cons but also /dev/consctl --
another complexity.

In the end, my vote goes to a version with /dev/kbmap+^t^t n to change
maps, an arbitrary number of them.  The /dev/kbmap protocol needs to be
extended a little to reflect multiple maps.

	Goga





  reply	other threads:[~2002-04-01  6:50 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-30 21:28 rob pike, esq.
2002-03-30 22:41 ` Richard
2002-03-30 22:47 ` Digby Tarvin
2002-03-31 11:26   ` kazumi iwane
2002-03-31 12:21     ` kazumi iwane
2002-03-31  2:47 ` kazumi iwane
2002-03-31 18:32 ` George Bronnikov
2002-04-01  0:47   ` Boyd Roberts
2002-04-01  6:50     ` George Bronnikov [this message]
2002-04-01  7:22       ` Lucio De Re
2002-04-01 11:35         ` Boyd Roberts
2002-04-01 16:27         ` kazumi iwane
2002-04-01 16:33           ` Lucio De Re
2002-04-01 11:34       ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02 10:48 forsyth
2002-04-02 10:56 ` Lucio De Re
2002-04-02 10:42 forsyth
2002-04-08 12:54 ` Andries Brouwer
2002-04-02  9:31 forsyth
2002-04-02  9:44 ` Boyd Roberts
2002-04-02  8:28 Fco.J.Ballesteros
2002-04-02  8:17 Fco.J.Ballesteros
2002-04-02  5:04 plan9
2002-04-02  1:58 okamoto
2002-04-01 14:01 rob pike, esq.
2002-04-01  1:54 okamoto
2002-04-01  1:40 okamoto
2002-03-31 19:35 andrey mirtchovski
2002-03-31 14:48 bwc
2002-03-31 15:13 ` Boyd Roberts
2002-03-31 17:06 ` Digby Tarvin
2002-03-31 10:24 forsyth
2002-03-31  5:40 rob pike, esq.
2002-03-30 23:13 Russ Cox
2002-03-30 21:20 Geoff Collyer
2002-04-08 12:47 ` Matthew C Weigel
2002-03-30 21:10 rob pike, esq.
2002-03-30 21:08 rob pike, esq.
2002-03-31 18:58 ` FJ Ballesteros
2002-04-01  0:36   ` Boyd Roberts
2002-04-01  0:42   ` Boyd Roberts
2002-03-23 12:01 George Bronnikov
2002-03-30 21:05 ` FJ Ballesteros
2002-03-31 12:45   ` Boyd Roberts

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=Pine.LNX.4.30.0204011030060.22327-100000@donkey.bronnikov.mccme.ru \
    --to=goga@rubinstein.mccme.ru \
    --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).