up.zw Command/Update Processor

up.zw

Command up.zw Command/Update Processor
Applicable release versions: AP
Category Update Processor (113)
Description writes the contents of the prestore buffer to a file for reuse.

"<ctrl>+zw" causes the Update processor to prompt:

Prestore id:

This displays at the top left corner of the terminal. At this time an item-id may be specified or a file.reference and item-id may be specified.

If only an item-id is entered, the prestore item is saved in the current master dictionary (md). If the md already has an item with the specified item-id, the following prompt displays at the top left corner of the screen :

'prestore.id' item exists on file, press "y" to overwrite:

If any key other than "y" is typed, the prestore item is NOT saved. If "y" is typed, the md item that was on file is overwritten with the prestore command.

If the response to the prompt for Prestore id is a file.reference and item-id, the item is written to the designated file with the specified item-id. The format of the saved item is :

attribute 1 = p
attribute 2 = prestore command
Syntax <ctrl>+zw{(file.reference} item-id<return>
Options
Example
The following example shows a prestore command composed of only a literal 
string, with no UP commands. Since there is no file.reference specified in 
response to the Prestore id prompt, the command is saved in the md.

:u document document.id
invoke UP to edit document
<ctrl>+zl
command to define prestore
P:
terminal prompt
'This is text'<return>
actual prestore command
<ctrl>+zw
command to save prestore
Prestore id:
terminal prompt for item-id
id<return>
user-defined item-id


The next example shows a prestore command consisting of UP commands and text.  
This command does the following : 

mm
issues two carriage returns
r
puts UP in insert mode
'This is text'm
Text to insert, plus a <ctrl>+m (return)
r
puts UP back in overtype mode

The command is saved in the file 'commands' with the id of 
'holdit'.

u document document.id
invoke UP to edit document
<ctrl>+zl
command to define prestore
P:
terminal prompt 
mmr'This is text'mr<return>
actual prestore command 
<ctrl>+zw
command to save prestore
Prestore id:
terminal prompt for item-id
(commands holdit<return>
user-defined file and item-id

The file commands 'holdit' contains the following :

01 P
02 mmr'This is text'mr
Purpose
Related up.prestore
up.zl
up.p
up.z
up.za
up.zb
up.zc
up.zd
up.ze
up.zg
up.zh
up.zn
up.zo
up.zy
update.processor
up
updte.processor