From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43DB5D06.4010708@free.fr> Date: Sat, 28 Jan 2006 13:01:10 +0100 From: Philippe Anel User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) MIME-Version: 1.0 To: 9fans@cse.psu.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] Special keys ... Topicbox-Message-UUID: eb8b9894-ead0-11e9-9d60-3106f5b1d025 Hello, In vncv source, it seems that some control key events are forwarded to the server (see /sys/src/cmd/vnc/kbdv.c): ---------------------- switch(r){ case Kalt: alt = !alt; keyevent(v, Xalt, alt); break; case Kctl: ctl = !ctl; keyevent(v, Xctl, ctl); break; case Kshift: shift = !shift; keyevent(v, Xshift, shift); break; ---------------------- However, looking at /sys/src/9/pc/kbd.c, those key events are not sent through /dev/cons. (Moreover values assigned to those key differ from those in keyboard.h). I think we can't send those key event through /dev/cons without many changes to programs. 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 ? Philippe,