Brian Vito | 25 Jun 2012 11:13
Picon

Show/edit acme snarf buffer

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? If so, is there a way to have that
window automatically update when the snarf buffer changes? Basically,
I'm wondering if there is a way to duplicate the functionality that
was generally present in old Macintosh text editors under the show
clipboard command. Finally, if this functionality is available, would
it be possible that by editing the snarf buffer window to edit the
contents of the snarf buffer itself (as was possible in Nisus's old
editor QUED/M)?

Justin Bedo | 25 Jun 2012 11:58
Gravatar

Re: Show/edit acme snarf buffer

> 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? If so, is there a way to have that
> window automatically update when the snarf buffer changes? Basically,
> I'm wondering if there is a way to duplicate the functionality that
> was generally present in old Macintosh text editors under the show
> clipboard command. Finally, if this functionality is available, would
> it be possible that by editing the snarf buffer window to edit the
> contents of the snarf buffer itself (as was possible in Nisus's old
> editor QUED/M)?

Under Plan 9 there's /dev/snarf.

Richard Miller | 25 Jun 2012 12:24

Re: Show/edit acme snarf buffer

> 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.

Stephen Wiley | 29 Jun 2012 10:54

Re: Show/edit acme snarf buffer

Brian Vito <brian.vito <at> gmail.com> wrote:
> 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? If so, is there a way to have that
> window automatically update when the snarf buffer changes? Basically,
> I'm wondering if there is a way to duplicate the functionality that
> was generally present in old Macintosh text editors under the show
> clipboard command. Finally, if this functionality is available, would
> it be possible that by editing the snarf buffer window to edit the
> contents of the snarf buffer itself (as was possible in Nisus's old
> editor QUED/M)?

isn't there a snarf file in the filesystem served bu rio?

--

-- 
--Sent from my iphone

Brian Vito | 12 Jul 2012 10:52
Picon

Re: Show/edit acme snarf buffer

On Jun 25, 5:24 am, 9f... <at> hamnavoe.com (Richard Miller) wrote:
> > 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.

Thank you -- these are useful suggestions. Is there an equivalent to /
dev/snarf when using plan9port under Mac OS X?

[bv]

andrey mirtchovski | 12 Jul 2012 15:16
Picon

Re: Show/edit acme snarf buffer

> Thank you -- these are useful suggestions. Is there an equivalent to /
> dev/snarf when using plan9port under Mac OS X?

this is one outdated solution: http://mirtchovski.com/p9/osxsnarf/


Gmane