3 getsnarf, putsnarf \- window system snarf (cut and paste) buffer
11 void putsnarf(char *text)
16 access the window system's snarf (cut and paste) buffer.
19 returns a copy of the current buffer;
20 the returned pointer should be freed with
24 when no longer needed.
27 sets the buffer to the text string
30 Callers should assume that the snarf buffer is UTF.
31 If the window system does not keep the buffer in UTF,
35 will convert as necessary.
37 .B \*9/src/libdraw/x11-itrans.c
41 On OS X, there are two snarf buffers: the Carbon snarf buffer
42 used by native OS X applications, and the X11 snarf buffer,
43 used by X11 applications.
44 Whenever new text is written to the Carbon snarf buffer, the OS X X11
45 implementation automatically copies that text to the X11 snarf buffer.
46 The reverse is not done automatically, arguably a bug in the X11 server.
49 writes to both the Carbon snarf buffer and the X11 snarf buffer.
50 To work around this bug in remote or non-Plan 9 X11 clients, run