|append standard input to the selection. Implies -i.|
|append to selection as standard input grows. Implies -i.|
read standard input into the selection.
write the selection to standard output.
|clear the selection. Overrides all input options.|
Request that the current selection be deleted. This not only clears the
selection, but also requests to the program in which the selection
resides that the selected contents be deleted. Overrides all input
|operate on the PRIMARY selection (default).|
|operate on the SECONDARY selection.|
operate on the CLIPBOARD selection.
|-k, --keep||Do not modify the selections, but make the PRIMARY and SECONDARY selections persist even after the programs they were selected in exit. (Conventionally, the CLIPBOARD selection is persisted by a separate special purpose program such as xclipboard(1)). Ignores all input and output options.|
exchange the PRIMARY and SECONDARY selections. Ignores all input
and output options.
|-d displayname, --display displayname|
|specify the server to use; see X(1).|
|-t ms, --selectionTimeout ms|
Specify the timeout in milliseconds within which the selection must be
retrieved. A value of 0 (zero) specifies no timeout (default).
|-l filename, --logfile filename|
|Specify the file to log errors to when detached. (Default $HOME/.xsel.log)|
|Do not detach from the controlling terminal. Without this option, xsel will fork to become a background process in input, exchange and keep modes.|
|-h, --help||display usage information and exit|
|Print informative messages. Additional instances of -v raise the debugging level, ie. print more information.|
|output version information and exit|
There is no X selection buffer. The selection mechanism in X11 is an interclient communication mediated by the X server each time any program wishes to know the selection contents, eg. to perform a middle mouse button paste. In order to implement modification of the selection(s) (in input, keep and exchange modes) this program detaches from the terminal, spawning a child process to supply the new selection(s) on demand. This child exits immediately when any other program takes over the selection(s), eg. when the user next selects some text in a terminal window or by running xsel -c.
xsel conforms to the Inter-Client Communication Conventions Manual Version 2.0 (ICCCM2).
Conrad Parker <firstname.lastname@example.org>, July 2001
|-->||XSEL (1x)||January 2008|