From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: "James A. Robinson" Date: Fri, 30 Aug 2013 05:41:01 -0700 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d043c817662d7b904e5298beb Subject: Re: [9fans] 9p write event to Acme? Topicbox-Message-UUID: 778e1c5c-ead8-11e9-9d60-3106f5b1d025 --f46d043c817662d7b904e5298beb Content-Type: text/plain; charset=UTF-8 So I see that it actually isn't possible to do what I want, that the write operations to an event file are limited to just positional information. That's unfortunate, I had really hoped it was possible to simulate events via an external program. .../src/libacme/acme.c: int winwriteevent(Win *w, Event *e) { char buf[100]; snprint(buf, sizeof buf, "%c%c%d %d \n", e->c1, e->c2, e->q0, e->q1); return fswrite(wfid(w, "event"), buf, strlen(buf)); } --f46d043c817662d7b904e5298beb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So I see that it actually isn't possible to do whatI want, that the write operations to an event file
are limited = to just positional information. =C2=A0That's
unfortunate, I h= ad really hoped it was possible to
simulate events via an external program.


.../src/libacme/acme.c:

int
winwriteevent(Win *w,= Event *e)
{
char buf[100];

snprint(buf, sizeof buf, "%= c%c%d %d \n", e->c1, e->c2, e->q0, e->q1);
return fswrite(wfid(w, "event"), buf, strlen(buf));
}
--f46d043c817662d7b904e5298beb--