From: "James A. Robinson" <jimr@highwire.stanford.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 9p write event to Acme?
Date: Fri, 30 Aug 2013 05:41:01 -0700 [thread overview]
Message-ID: <CAPd04b5mEz5JMhC8-M5mEXWTXENGpJMkZS=TCDatYHKJvnPCKA@mail.gmail.com> (raw)
In-Reply-To: <CAPd04b4=m72f_s8BVuAtjFsXVWOgu-LftuNMZdfzqCZJhH4PfA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 469 bytes --]
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));
}
[-- Attachment #2: Type: text/html, Size: 642 bytes --]
prev parent reply other threads:[~2013-08-30 12:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 6:47 James A. Robinson
2013-08-30 12:41 ` James A. Robinson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPd04b5mEz5JMhC8-M5mEXWTXENGpJMkZS=TCDatYHKJvnPCKA@mail.gmail.com' \
--to=jimr@highwire.stanford.edu \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).