beautypg.com

Example 5–7 show defaults buffer display – Compaq DEC Text Processing Utility AA-PWCBD-TE User Manual

Page 127

background image

DEC Text Processing Utility Program Development

5.6 Using DECTPU Startup Files

5.6.7.2 Using an EVE Initialization File During an Editing Session

To execute an EVE initialization file during an editing session, use the @ (at sign)
command and specify the file. For example, the following command executes an
initialization file called MYEVE.EVE in your current (default) directory.

Command: @MYEVE

Commands for buffer settings apply to the current buffer. This is effectively the
same as typing the commands that the file contains. You may want to create
initialization files to execute two or more related commands, such as resetting
both margins.

5.6.7.3 How an EVE Initialization File Affects Buffer Settings

Commands in an EVE initialization file that set buffer characteristics (such as
margins and tab stops) affect a system buffer named $DEFAULTS$. Buffers
created during the editing session have the same settings as $DEFAULTS$. For
example, if your initialization file contains the command SET RIGHT MARGIN
65, the value 65 is used as the right margin setting for the main buffer and for
any buffers you create during the session with GET FILE or BUFFER commands.

To see the settings for the $DEFAULTS$ buffer, use the EVE command SHOW
DEFAULTS BUFFER. For example, if you want to know what the tab settings
are for the $DEFAULTS$ buffer, type the following command:

Command: SHOW DEFAULTS BUFFER

This command causes EVE to show buffer information in a format similar to the
format in Example 5–7 (using values that apply to your editing session).

Example 5–7 SHOW DEFAULTS BUFFER Display

EVE V3.1 1993-08-17 08:47
Information about buffer $DEFAULTS$

Not modified

Left margin set to: 1

Mode: Insert

Right margin set to: 79

Paragraph indent: none

WPS word wrap indent: none

Read-only

Unmodifiable

Direction: Forward
Max lines: no limit

Tab stops set every 8 columns.
Word wrap: on

To change the characteristics of the $DEFAULTS$ buffer during an editing
session, use the command BUFFER $DEFAULTS$ to put the defaults buffer in a
window. This buffer is empty and you cannot add text to it. However, when you
change the settings of the $DEFAULTS$ buffer, the changes are saved and used
to set the characteristics of any user buffers you create.

Use commands such as SET RIGHT MARGIN, SET LEFT MARGIN, SET TABS,
FORWARD, REVERSE, INSERT, or OVERSTRIKE to change the characteristics
of the $DEFAULTS$ buffer. The new characteristics are applied to new buffers
but not to existing ones. To leave the $DEFAULTS$ buffer and put a different
buffer in the window, use the BUFFER command.

DEC Text Processing Utility Program Development 5–27