1 CLEDIT
 This program is similar to the DCL INQUIRE command. When
 used with  its related command procedure it provides the 
 VT_100 user with the ability to perform simple editing of
 the  command line as it is entered.  Additionally, the
 program  permits the last entered command line to be
 recalled  and  edited to correct errors or reuse the same
 basic command  with  modifications. 
 
 The user can define up to eighteen DCL commands which can 
 then be submitted with a single keypad key stroke. 

2 functions
 Edit functions available are move cursor, insert text,
 delete text, retrieve a previous command and execute a
 pre-defined keypad function.

3 backspace
 Sets cursor to first of command line.

3 tab
 Sets cursor to end of command line.

3 left_arrow
 Moves cursor left one space.

3 right_arrow
 Moves cursor right one space.


3 delete
 Delete the character under the cursor unless the cursor is at 
 the end of the line, in which case, delete the character to the 
 left of the cursor.

3 control_u
 Clean the buffer and start over.  The unedited version of a 
 command may then be placed in the buffer by pressing return.

3 control_r
 Restore the display after broadcast messages etc.

3 KEYPAD
 If a user defined keypad key is pressed, the defined symbol
 is inserted in the edit buffer at the location of the cursor
 and the complete buffer sent to the command line interpeter.

 If <esc> is depressed before the function key, the text is
 placed in the buffer and may then be edited. 

4 DEFINE_KEY
 The user can define up to eighteen symbols (in the LOGIN.COM
 file for example) The symbol names must be PF_1,,,PF_9,
 PF10,,,PF18. The keypad keys are numbered left to right, 
 top to bottom. Enter is key 18. 

 Example:

 $PF_1 :== SET DEFAULT SYS$LOGIN

 When PF1 is depressed, the device and directory will be
 reset to what existed when you logged on to the system. 

4 help
 Define one key as:
	@SYS$PROCEDURE:HELPKEY

 Depressing that key will display the location and the current
 defination of the function keys.

3 up_arrow
 Saves the current contents of the edit buffer and loads
 the command in the previous slot into the buffer.
 (similar to the up arrow when used with a screen
 editor) 

3 down_arrow
 Saves the current contents of the edit buffer and places the
 contents of the next line in the buffer 

3 carriage_return
 Saves the command in the edit buffer and also assigns
 it to the symbol 'COMMAND__LINE'.

 If carriage return is pressed and the edit buffer is  empty,the
 line at the index pointer is placed  in the edit  buffer. This
 permits a series of commands  to be repeated (and  optionally
 edited) by using the  up arrow to position to the  first and then
 pressing  carriage return as required, once to  submit the
 command  and again to recall the next command. 
 
 The carriage return may be entered at any point in  the line,
 the complete line is transmitted. 



2 command_procedure
 Use of the utility requires the use of a DCL command
 procedure. You may  develop your own using the following as
 a guide or use @SYS$PROCEDURE:CLEDIT. 

 $GOTO START
 $TOP: CLEDIT <optional user specified prompt>
 $ASSIGN/USER SYS$COMMAND SYS$INPUT
 $ 'COMMAND__LINE'
 $GOTO TOP
 $START: 
 $CLEDIT := $SYS$PROCEDURE:CLEDIT
 $RESTART: ON CONTROL_Y THEN $GOTO RESTART
 $ON WARNING THEN $GOTO RESTART
 $GOTO TOP

    NOTE: All required parameters and switches must be supplied
    on the command  line. 

3 PROMPT

 The default prompt used by CLEDIT is '$. ', the continuation prompt
 is '$._'.
 
 You may specify your own prompt string on the CLEDIT
 command line in the procedure.  Your prompt string must be
 32 characters or less and may contain no special characters.
 
 Examples: 
 
 command           	prompt         continuation  
 $TOP: $CLEDIT	     	  $.                 $._   (default)  
 $TOP: $CLEDIT $     	  $                  $_    (DCL lookalike) 
 $TOP: $CLEDIT mine> 	  MINE>		     MINE>_
