9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Show/edit acme snarf buffer
Date: Mon, 25 Jun 2012 11:24:35 +0100	[thread overview]
Message-ID: <3c3f8f30b703722a4288c485916573ea@hamnavoe.com> (raw)
In-Reply-To: <4a4b1281-ebfc-42e0-9e79-f80e090a5e35@f30g2000vbz.googlegroups.com>

> Using either/both acme under Plan 9 and/or Mac OS X via plan9port, is
> there a "file" that can be opened in acme that displays the current
> contents of the acme snarf buffer?

/dev/snarf

> If so, is there a way to have that
> window automatically update when the snarf buffer changes?

Not quite automatically. You can write a program which polls /dev/snarf
using fstat(2); qid.vers will be updated when the file is written to.

> would
> it be possible that by editing the snarf buffer window to edit the
> contents of the snarf buffer itself

Just as with any acme window, the underlying file will only change
when you click Put.  Again if you're willing to do some programming,
you could monitor changes in the window using the acme event file
and do the Put automatically.




  parent reply	other threads:[~2012-06-25 10:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25  9:13 Brian Vito
2012-06-25  9:58 ` Justin Bedo
2012-06-25 10:24 ` Richard Miller [this message]
2012-06-29  8:54 ` Stephen Wiley
     [not found] ` <392578302362604520.663215theswiley-me.com@reader443.eternal-sept>
2012-06-29 13:15   ` erik quanstrom
2012-06-29 13:55     ` Ethan Grammatikidis
2012-07-12  8:52 ` Brian Vito
2012-07-12 13:16   ` andrey mirtchovski

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=3c3f8f30b703722a4288c485916573ea@hamnavoe.com \
    --to=9fans@hamnavoe.com \
    --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).