From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60611100617j625e6831x9f1cbb7cb44cf2af@mail.gmail.com> Date: Fri, 10 Nov 2006 06:17:02 -0800 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: Re: [9fans] winclear in p9p In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <88a477560610310922j6c5ed52dg6327ab6587479977@mail.gmail.com> Topicbox-Message-UUID: dd210e28-ead1-11e9-9d60-3106f5b1d025 On 11/9/06, Russ Cox wrote: > > fn winclear { > > echo -n Edit ,d > /dev/acme/body > > echo -n /Edit ,d/ > /dev/acme/addr > > echo -n 'dot=addr' > /dev/acme/ctl > > cat /dev/acme/addr | awk '{printf("MX%s %s\n", $1, $2)}' > /dev/acme/event > > } > > I finally read this part of the message. > This is a remarkably complicated way to go about deleting the window text! > > Here is a simpler one: > > echo -n , >/mnt/acme/$winid/addr > echo -n >/mnt/acme/$winid/data > Maybe it's how I keyed it in, or that I've got the worst cold I've had in about 6 or 7 years, but I'm getting invalid address with this version. It looks cleaner but for some reason it's just not liking me. > (Or on Unix: > echo -n , | 9p write acme/$winid/addr > 9p write acme/$winid/data ) > > Russ >