From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Special keys ... From: "Russ Cox" In-Reply-To: <43DB5D06.4010708@free.fr> Date: Sat, 28 Jan 2006 09:12:45 -0500 Message-Id: <20060128141251.CEB401E8C29@holo.morphisms.net> Topicbox-Message-UUID: eb8f6096-ead0-11e9-9d60-3106f5b1d025 > Therefore I'd like to: > 1) add a control messages to /dev/consctl (ctlkeyon/ctlkeyoff) in port/devcons.c > 2) modify pc/kbd.c to send KshiftDown, KshiftUp, ... when ctlkeyon has > been sent to /dev/consctl > 3) modify rio to handle those control messages (and to redirect read > control key events only to the right windows). > > Do you think it is the right way to patch vncv ? No, it's not. You can send those key events by typing Alt Z C, Alt Z S, and Alt Z A (they are listed in /lib/keyboard) if you really need them. Control and Shift are already handled properly when you type a control or uppercase character, so the only time you really need them is to type Alt or to do fancy mouse clicks with keyboard modifiers. Plan 9 handles Alt for itself, so that you can type Unicode characters into every program, not just ones that have been specially coded. Russ