home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / share / doc / autocutsel.txt < prev    next >
Encoding:
Text File  |  2004-10-12  |  2.8 KB  |  67 lines

  1. autocutsel
  2. http://lepton.fr/tools/autocutsel/ or http://www.nongnu.org/autocutsel/
  3. Copyright (c) 2001,2002,2004 - Michael Witrant
  4.  
  5. X servers use two schemes to copy text between applications. The first one
  6. (old and deprecated) is the cutbuffer. It is a simple buffer in which any
  7. application can store text. The other scheme is the selection and works
  8. differently. There may be many selections in a single server. An
  9. application does not copy data in a selection, it "owns" it. When
  10. another application wants to retreive the content of a selection, it
  11. asks the owner.
  12.  
  13. Recent desktop applications (GNOME, KDE, ...) use two selections: the
  14. PRIMARY and the CLIPBOARD. The PRIMARY selection is used when you select
  15. some text with the mouse. You usually paste it using the middle button. The
  16. CLIPBOARD selection is used when you copy text by using, for example,
  17. the Edit/Copy menu. You may paste it using the Edit/Paste menu.
  18.  
  19. Windows VNC clients keep the Windows clipboard synchronized with the
  20. cutbuffer, but not with the selections. And since recent applications
  21. don't use the cutbuffer, the server's CLIPBOARD is never synchronized
  22. with Windows' one.
  23.  
  24. Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD
  25. selection. When the CLIPBOARD is changed, it updates the cutbuffer. When
  26. the cutbuffer is changed, it owns the CLIPBOARD selection. The cutbuffer
  27. and CLIPBOARD selection are always synchronized. Since the VNC client
  28. synchronizes the Windows' clipboard and the server's cutbuffer, all
  29. three "clipboards" are always kept synchronized. When you copy some text in
  30. Windows, the cutbuffer and the CLIPBOARD selection are updated. When you
  31. copy text on the server using either the cutbuffer or the CLIPBOARD
  32. selection, the Windows's clipboard is always updated.
  33.  
  34.  
  35. To build autocutsel:
  36.  ./configure
  37.  make
  38.  
  39. If configure fails because it can't find X or Xaw libraries, you may have to
  40. install the devel packages of these libraries.
  41.  
  42. To install it (as root):
  43.  make install
  44.  
  45. To run it:
  46.  autocutsel
  47. A small small square should appear in the bottom right of the screen.
  48.  
  49. Any feedback is welcome.
  50.  
  51. Michael Witrant <mike at lepton.fr>
  52.  
  53.     
  54.     This program is free software; you can redistribute it and/or modify
  55.     it under the terms of the GNU General Public License as published by
  56.     the Free Software Foundation; either version 2 of the License, or
  57.     (at your option) any later version.
  58.  
  59.     This program is distributed in the hope that it will be useful,
  60.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  61.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  62.     GNU General Public License for more details.
  63.  
  64.     You should have received a copy of the GNU General Public License
  65.     along with this program; if not, write to the Free Software
  66.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  67.