clipboard.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 09 Oct 2017 10:49:36 +0300
changeset 2188 e95731eef030
parent 1912 8b81a8f0f692
child 2224 b45b160b9f02
permissions -rw-r--r--
Fixed: NameError: name 'locale_encoding' is not defined File /bin/rst2html.py, line 17, in <module> from docutils.core import publish_cmdline, default_description File /usr/lib/python2.7/site-packages/docutils/core.py, line 20, in <module> from docutils import frontend, io, utils, readers, writers File /usr/lib/python2.7/site-packages/docutils/frontend.py, line 41, in <module> import docutils.utils File /usr/lib/python2.7/site-packages/docutils/utils/__init__.py, line 20, in <module> import docutils.io File /usr/lib/python2.7/site-packages/docutils/io.py, line 18, in <module> from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput File /usr/lib/python2.7/site-packages/docutils/utils/error_reporting.py, line 60, in <module> codecs.lookup(locale_encoding or '') # None -> '' NameError: name 'locale_encoding' is not defined

.. -*- coding: utf-8; -*-

=====================
 Clipboard/selection
=====================
.. contents::
   :local:

MS Windows
==========

X Windows
=========

X11 selection transfers (which both PRIMARY and CLIPBOARD are instances of)
are done through synthesized X11 events and properties changes.

The messages used to transfer the selections have a maximum size that's
actually quite low (a few kilobytes).

See

  http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt
  http://www.jwz.org/doc/x-cut-and-paste.html
  http://en.wikipedia.org/wiki/X_Window_selection
  http://www.emacswiki.org/cgi-bin/wiki/CopyAndPaste

xclipboard
==========

The xclipboard command emulates the traditional Macintosh style clipboard by
claiming ownership of the CLIPBOARD selection and answering any requests for
its value. When it loses the selection, it immediately asks the new owner for
the value of the CLIPBOARD selection, makes a local copy, and then reasserts
ownership of the CLIPBOARD. This way the clipboard contents can persist after
the original application has exited.