On 11/9/06, Russ Cox <[EMAIL PROTECTED]> 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 </dev/null
)

Russ

Reply via email to