Causes the Editor to enter the input environment.
I
or
I{ data}
The I command has two different modes: Insert and Input.
When you use the I mode, you are prompted by a line number.
All subsequent lines you type are then considered as data input to the item.
You cannot type more than 240 characters on one line without typing a line continuation character. The line continuation character is a segment mark (X'FF'), entered by typing CTRL+_.
If the I command is issued for a new item, the new lines are inserted starting at line one. The Editor defines data lines by prompting with a line number to which data are to be entered. Line numbers for new items are issued consecutively, beginning with 001.
Input is prompted with the line number followed by a plus sign indicating lines are being added after the line number indicated. The exception to this is when a line is inserted before the first line of the item. The prompt in this case is 001-.
A null input (ENTER, LINE FEED or RETURN in column one) terminates Editor prompts, and exits the input environment, waiting for the next Editor command.
When you exit the input environment for the first time for a new item, the Editor executes an automatic F (Flip) command, toggling the Editor buffers and allowing the newly entered lines to be listed.
To use Input mode, you include the data you want to input on the same line as the I command. You are limited to inserting one line of up to 240 characters. Line continuation is not allowed with this form of the command.
If a null line is required in the item, you must create the line with a fill character and then replace that fill character with a null character by means of the R (Replace) command.
If the I command is issued for an item already containing data, new lines are inserted following the current line. If the line pointer is at the top of the item, input lines are inserted before the first line of the item.
:EDIT AFILE AITEM |
Edit
a new item. Insert command. Data is keyed into the item. Input is terminated. The F command executes automatically. List command. |
:ED MD TESTX |
Create an item in input mode. |
.I THIS IS^A TEST^OF THE^REALITY EDITOR'S^INPUT MODE^LET'S^SEE WHAT
IT^CAN DO |
|
Top |
Note that each caret mark
is the echo of pressing CTRL+^. Display the item in standard Editor format. |
:EDIT TESTFILE TESTITEM |
Current contents of TESTITEM. Top of item command. Insert a new line. New line input. Input terminated. Go to line 2 of the item. Insert new data after line 2. New line input. Input terminated. F command toggles buffers. List command. |