Russ Cox a écrit :

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.

I understand, but it doen't help.
I'd like to use the shift in combination with the arrow keys (for a vnc server running under windows)
to select some text.

   Philippe

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



Reply via email to