On 2024-05-15, Michael wrote:

>
> There are 3 'cliboards', known as selections, I know of:
>
> 1. Primary - you select some text by holding down your left mouse button (or 
> Shift+arrow) and you paste it with your middle button (or Shift+Insert - 
> depending on application).
>
> 2. Secondary - some applications will autoselect text, e.g. when you click in 
> the non-empty address bar of a browser.  This can replace any selection you 
> had in the Primary selection.  It depends on the particular application.
>
> 3. Clipboard - this is the Ctrl+x/c/v MSWindows style of cut/copy/paste menu 
> items.
>
> More details can be found in the spec here:
>
> https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

There's also this one:

  https://www.jwz.org/doc/x-cut-and-paste.html

Which mentions the support for different targets, also mentioned in:

  https://lars.ingebrigtsen.no/2018/10/07/further-fun-with-the-clipboard/

(xclip can be used for targets too, "xclip -o -target TARGETS" for a
list of the currently available targets)

> As far as I know the Primary selection is not stored anywhere - other than 
> within the application's memory space where the range of characters have been 
> selected.  The xserver will call for this when you middle click to paste it 
> on 
> another application's window.
>
> The Clipboard may be stored in RAM or cache of any applications which use 
> this 
> method.

-- 
Nuno Silva


Reply via email to