From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <80c99e790912070613g1caffb63m7c09e0530f687a95@mail.gmail.com> Date: Mon, 7 Dec 2009 16:49:17 +0000 Message-ID: <80c99e790912070849t55a06ccas45d49efcbdcbf5af@mail.gmail.com> From: Lorenzo Bolla To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000e0cd16e2efcde3c047a263c4c Subject: Re: [9fans] keyboard events in sam Topicbox-Message-UUID: abfe465e-ead5-11e9-9d60-3106f5b1d025 --000e0cd16e2efcde3c047a263c4c Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 7, 2009 at 4:17 PM, Russ Cox wrote: > sam(1) says ``Text may be typed and edited as in rio(1); > also the escape key (ESC) selects (sets dot to) text typed > since the last mouse button hit.'' > > rio(1) has a subsection titled ``Text windows.'' > This subsection is in 9term(1) in plan9port. Thanks, I hadn't seen it! > > Ctrl-0 isn't a real control sequence (if you look at the output > of "ascii", the valid control characters are A through _). > What byte are you trying to type? > I'm trying to map some simple operations to control-sequences, like jumping to the command win, flipping between buffers, and so on. I guess I'll have to do with A.._ chars, avoiding the ones already taken (ctrl-a, ctrl-u, ctrl-w, etc) > > You cannot detect the press of the Alt key - the > kernel does that as part of its keyboard handling. > > Russ > > This is unfortunate. Thank you very much, L. --000e0cd16e2efcde3c047a263c4c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Mon, Dec 7, 2009 at 4:17 PM, Russ Cox= <rsc@swtch.com&g= t; wrote:
sam(1) says ``Text may be typed and edited as in rio(1);
also the escape key (ESC) selects (sets dot to) text typed
since the last mouse button hit.''

rio(1) has a subsection titled ``Text windows.''

This subsection is in 9term(1) in plan9port. Thanks, I hadn't se= en it!
=A0

You cannot detect the press of the Alt key - the
kernel does that as part of its keyboard handling.

Russ


This is unfortunate.

Thank you very mu= ch,
L.
--000e0cd16e2efcde3c047a263c4c--