From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Bronnikov To: <9fans@cse.psu.edu> Subject: Re: [9fans] kbd.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Date: Sun, 31 Mar 2002 22:32:31 +0400 Topicbox-Message-UUID: 70041dd2-eaca-11e9-9e20-41e7f4b1d025 On Sat, 30 Mar 2002, rob pike, esq. wrote: > > My favourite keyboard, the Happy Hacking keyboard, doesn't have a caps > > lock key, so I'd prefer a mechanism that doesn't require one. The HH > > keyboard does have alt and ◊ keys, plus the usual array of function > > keys, arrow keys and misc. weird PC keys (scroll lock, home, insert) > > on other keys when the "function" modifier key is applied. > Whatever your personal taste, the HH keyboard is a crock. I think > it's a mistake to go in one direction or the other based on that > oddball. The vast majority of keyboards have a caps lock and I think > it's reasonable to assume one is present. I needed some sticky modifier key to switch between Cyrillic and Latin; in fact, nothing is tied to it being Caps Lock. If HH does not have one, you can choose any key you want and make it send the caps lock code -- the kbmap mechanism allows that. Perhaps the caps_lock variable should simply be renamed to something like sticky_mod. My solution will not work, of course, if you have more than two layouts to switch (I've seen English/Russian/Ukrainian keymaps for Linux, for example). It is not hard to make an arbitrary number of keytables, but I'm not sure it is worth the complexity. Goga