![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for UNIX Environments |
Note:
For 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
SAS.defaultPasteBuffer resource:
SAS.defaultPasteBuffer: XTERM
SAS.defaultPasteBuffer: XPRIMARYThis specification uses both SAS and X resources more efficiently and provides for the on-demand transfer of data between 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
Cut,
Copy, or
Paste items from the xmeditor
Edit
pull-down menu.
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 resource:
SAS.markPasteBuffer: XTERMAlternatively, because DEFAULT is an alias for XTERM, you could specify
SAS.markPasteBuffer: DEFAULTThe
SAS.markPasteBuffer definition 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
override the
SAS.keyboardTranslations definition for the
osfCopy and
osfPaste keys
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.defaultPasteBuffer and
SAS.markPasteBuffer to XCUT0, then you will not retain the text and
color attributes when you copy and paste text between two SAS sessions.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.