Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

GET_SELECTION(1)  —  USER COMMANDS

NAME

get_selection  − copy the contents of a SunView selection to the standard output

SYNOPSIS

get_selection [ rank ] [ t seconds ] [ D ]

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

rankindicates which selection is to be printed:
1: primary; 2: secondary; 3: the shelf. 
The default is primary.

t seconds
indicates how many seconds to wait for the holder of a selection to respond to a request before giving up.  The default is currently 6 seconds.

Ddebugging: inquire through a special debugging service for the selection, rather than accessing the standard service.  Useful only for debugging window applications which are clients of the selection library. 

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"

SEE ALSO

Editing and the Text Facility, in Windows and Window-Based Tools, Beginner’s Guide

Sun Release 3.2  —  Last change: 29 April 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026