xref: /inferno-os/man/3/snarf (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
SNARF 3 hosted
NAME
snarf - host window system clipboard
SYNOPSIS
bind -a #^ /dev

bind -b #^ /chan

/dev/snarf

/chan/snarf

DESCRIPTION
Snarf serves a single file, snarf . Reading the file returns the current contents of the host window system's own clipboard (equivalent to the Inferno window system's `snarf buffer'). If the file is opened for writing, subsequent writes append to an internal buffer; when the file is closed, that buffer's contents are written to the host window system's clipboard.

Emu (1) automatically binds the device to both /dev and /chan when it starts up, if a window system is configured.

SEE ALSO
wm (1)