Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Show/edit acme snarf buffer

185 views
Skip to first unread message

Brian Vito

unread,
Jun 25, 2012, 5:13:46 AM6/25/12
to
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

unread,
Jun 25, 2012, 5:58:32 AM6/25/12
to
Under Plan 9 there's /dev/snarf.

Richard Miller

unread,
Jun 25, 2012, 6:24:35 AM6/25/12
to
> 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

unread,
Jun 29, 2012, 4:54:21 AM6/29/12
to
isn't there a snarf file in the filesystem served bu rio?

--
--Sent from my iphone

erik quanstrom

unread,
Jun 29, 2012, 9:15:01 AM6/29/12
to
> isn't there a snarf file in the filesystem served bu rio?

it doesn't have the properties the op requested. a read at eof doesn't
hang until the contents of the file have changed.

- erik

Ethan Grammatikidis

unread,
Jun 29, 2012, 9:55:31 AM6/29/12
to
If manual update is acceptable he could add "Get" to the tag line.

I guess a simple polling program could be written for acme, but many
uses of the selection while you're editing the text would end up
overwriting your edit.

Brian Vito

unread,
Jul 12, 2012, 4:52:04 AM7/12/12
to
Thank you -- these are useful suggestions. Is there an equivalent to /
dev/snarf when using plan9port under Mac OS X?

[bv]

andrey mirtchovski

unread,
Jul 12, 2012, 9:16:17 AM7/12/12
to
> 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/

0 new messages