|SAS Companion for UNIX Environments|
instructions on cutting and pasting text, see Selecting (Marking) Text and Copying or Cutting and Pasting Selected Text
There are four SAS paste buffers. Each SAS paste buffer is associated with a X paste buffer:
If you are not sure which X data exchange protocols
your other X clients are using, you should use the XTERM paste buffer. You
can specify your default paste buffer with the
If you know that the X clients in your workstation environment all use the X PRIMARY selections to exchange data, you should use the XPRIMARY paste buffer:
SAS.defaultPasteBuffer: XPRIMARYThis specification uses both SAS and X resources more efficiently and provides for the on-demand transfer of data between clients.
Sun OpenWindows desktop clients use the CLIPBOARD selection as the basis for their copy-and-paste operations. If you use the SAS XCLIPBRD paste buffer, you can exchange text directly with these clients.
You can also use the SAS XCLIPBRD paste buffer to interact
with Motif clients that use the Motif clipboard mechanism for text exchanges.
This clipboard mechanism makes it unnecessary to have a dedicated client such
as xclipboard. For example, you can use XCLIPBRD to exchange text directly
with the Motif xmeditor application when you select the
Paste items from the xmeditor
The Motif quick-copy data exchange and Motif clipboard data exchange mechanisms are specific to the Motif interface toolkit and are not currently supported as SAS paste buffers. However some dialog boxes, such as the File Selection dialog box, use Motif interface text widgets. In these dialog boxes, the Motif quick copy and clipboard data exchange mechanisms are available.
If you want SAS to automatically copy selected text
into your paste buffer every time you mark a region of text with the mouse,
you should also specify your paste buffer name in the
SAS.markPasteBuffer: XTERMAlternatively, because DEFAULT is an alias for XTERM, you could specify
SAS.markPasteBufferdefinition causes SAS to automatically issue a STORE command whenever you select text.
The STORE command, as well as the CUT and PASTE commands,
support a BUFFER= option that specifies which buffer to use. When these commands
are issued from function keys or pull-down menus whose definitions do not
include the BUFFER= option, if the
SAS.markPasteBuffer resource is not defined, these commands use BUFFER=DEFAULT.
If this resource is defined, these commands use BUFFER=buffer-name.
You can customize your normal cut, copy, or paste keys
to issue any of these commands with the BUFFER= option. For example, you can
SAS.keyboardTranslations definition for the
with the following specifications:
SAS.keyboardTranslations: #override \ <Key>osfCopy: sas-do-command(\"STORE BUFFER=XCLIPBRD\") \n\ <Key>osfPaste: sas-do-command(\"PASTE BUFFER=XCLIPBRD\")For more information on customizing keys, see Customizing Key Definitions.
When you cut or copy and paste text between SAS sessions
using the XTERM, XPRIMARY, or XSCNDARYpaste buffers, the color and attribute
information is preserved. However, if you copy and paste the same text into
an xterm window while using the vi editor, the color and attribute information
is lost. If you change the definition for
SAS.markPasteBuffer to XCUT0, then you will not retain the text and
color attributes when you copy and paste text between two SAS sessions.
When you use the xclipboard client, SAS text attributes are not preserved in exchanges made between SAS sessions. However, when you use the XCLIPBRD paste buffer without a clipboard manager such as the xclipboard client, SAS text attributes are preserved in exchanges between SAS sessions.
Top of Page
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.