Editing Modes [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation
HPTOOLSET XL Reference Manual
Editing Modes
There are two editing modes: Visual Mode and Command Mode.
Visual Mode
Visual Mode is used to create, modify, and read any TSAM files. It is
screen oriented. Editing functions are performed by positioning the
cursor and typing over the text which is displayed on the screen.
Visual Editor Function Keys
There are five function key sets available in the visual editor. They
are displayed in visual mode only.
Edit Find Set
Find Change PrevKeys NextKeys Cmd Mode Listing Help End Edit
Edit Browse Set
PrevPage NextPage PrevKeys NextKeys Find-N Find+N Set N End Edit
Edit Move Set
Mark Clr Mark PrevKeys NextKeys Move Copy Undo End Edit
Edit Add Set
Mark Clr Mark PrevKeys NextKeys Add Generate End Edit
Edit Print Set
Set-Edit Print PrevKeys NextKeys Cmd Mode Refresh Undo End Edit
Terminal Keys for Editing in Visual Mode
Key Function
Home Cursor Moves the cursor to the beginning of the
display memory of the terminal.
Up Arrow Moves the cursor up a row. If the cursor is at
the top of the screen, it will wrap around to
the bottom of the screen.
Down Arrow Moves the cursor down a row. If the cursor is
at the bottom of the screen, it will wrap
around to the top of the screen.
Left Arrow Moves the cursor one column to the left. If
the cursor is at the left margin, it will wrap
around to the right.
Right Arrow Moves the cursor one column to the right. If
the cursor is at the right margin, it wraps
around to the left.
Roll Up Moves the display memory up a row. The cursor
remains stationary.
Roll Down Rolls the display memory down a row. The
cursor remains stationary.
Clear Display Deletes all lines of text displayed beyond the
cursor.
Insert Line Inserts the line containing the cursor. All
lines following it are rolled down one line. A
blank line is inserted just above the line
containing the cursor and the cursor moves to
the leftmost column. Line numbers are not
displayed unless you press the Refresh key.
Insert Char Inserts new characters in the line at the
current cursor position. The characters to the
right of the cursor are shifted right as new
characters are added, and are truncated if the
line overflows. To end the Insert Character
function, press the INSERT CHAR key again.
Del Line Deletes the line at which the cursor is
positioned and the lines below are rolled up.
The cursor is repositioned in the first column.
Del Char Deletes the character at the current cursor
position. The text to the right of the cursor
is shifted left as the characters are deleted.
Tab The cursor is moved forward to the next tab
(using TAB) or backwards to the previous tab
(using CNTL-TAB). Tabs should only be used in
Visual Mode. Tabs are set and cleared by using
the SET EDIT options menu. The CLEAR TAB and
SET TAB keys should not be used.
Backspace The cursor is moved one column to the left. If
the cursor is in the first column, it does not
move.
The visual editor has a maximum limit of 60 lines per screen. If that
limit is reached while you are inserting lines, your screen is repainted.
By default, 20 lines of text will be displayed. To override this
default, set PAGESIZE = any integer between 1 and 40 inclusive. If you
have more than 20 lines displayed, use the terminal ROLL UP, ROLL DOWN,
NEXTPAGE, and PREVPAGE Keys to scan the text.
To display a new page of text, use the function keys labelled NextPage,
PrevPage, Find+N, and Find-N. A Find key is also available to locate
specific strings or lines you want to see within the file.
Some of the edit function keys require that you specify one or more lines
or character positions before using them. Those keys include MOVE, COPY,
GENERATE, and ADD. Lines are designated by positioning the cursor and
pressing the Mark function key twice. Character positions are designated
by positioning the cursor at the desired character and pressing the Mark
function key once.
Command Mode
As you can see from our explanation of the visual editor function keys
and terminal keys for editing in visual mode, these are the most
efficient means for editing. You can, however, edit your source files by
entering commands in Command Mode.
You can access Command Mode from Visual Mode through the use of the
command mode function key.
MPE/iX 5.0 Documentation