GET_SELECTION(1) — USER COMMANDS
NAME
get_selection − copy the contents of a SunView selection to standard out
SYNOPSIS
get_selection [1 | 2 | 3 ]
DESCRIPTION
get_selection prints the contents of the indicated selection on standard out. A selection is a collection of objects (e.g. characters) picked with the mouse in the SunView window system.
OPTIONS
The optional argument indicates which selection is to be printed: −1 is primary, −2 is secondary, −3 is shelf. The default is primary.
EXAMPLE
The following line in a SunView root menu file provides a menu command to print the primary selection on the user’s default printer:
"Print It" csh -c "get_selection 1 | lpr"
(Specify your SunView root menu as the value of the Rootmenu_filename parameter in defaultsedit(1)).
Sun Release 3.0β — Last change: 26 December 1985