TOCPREVNEXTINDEX

Lund Performance Solutions


The MODIFY Editor
MODIFY is a single-line visual mode editor used for all REDO commands and, to a greater extent, in a few of the tools.

Operations

MODIFY displays your changes on the screen as you type. The cursor rests on the same line as the text you are editing. If you type any printable key, that key will either replace the character the cursor was on, or insert the key before that character, depending on the mode. Initially, you are in transparent mode. Here, a blank will simply cause the cursor to move one space to the right. Typing any other printable character terminates transparent-mode and puts you in overwrite- mode, so the character will replace the one the cursor is on.
The 3 basic modes are:
Table F.1 Basic Modes
Mode Types
To Enter Mode
To Exit Mode
transparent
^T
any printable char, ^B, ^O, or ^X
overwrite
^O
^T, ^B, or ^X
insert
^B or ^
^T, ^O, or ^X
You cannot create a line longer than the maximum specified by the calling program, nor can you accidentally "lose" characters off the right edge when using insert-mode. A beep will sound when you try to execute an illegal action.
The editor has an extensive set of commands, all of which are invoked via control-characters. MODIFY is case-sensitive. A few commands are meaningful only when this editor is used from within QEDIT from Robelle Consulting, Ltd. For more information on QEDIT, consult the documentation that comes with the product.

Char
Mnemonic
Description
^A
append
Goto end-of-line. Moves the cursor to just after the last character on the line. If the line is already at the maximum length, the cursor will be placed on the last character.
^B
before
Turn on insert-mode. Turns off overwrite-mode. If you enter a character while in insert-mode, it will be put before the character the cursor is on, and the rest of the line will move to the right one.
^
before
Control up-arrow (synonym of ^B). Use ^^ instead of ^B if you are on a system console.
^C
case
Change case of current character. If the current character is a lowercase letter, it will be changed to an uppercase letter and vice-versa.
^D
delete
Delete character. Typing ^D will cause the character under the cursor to be deleted and the rest of the line moved one space to the left.
^L^D
delete end
If the cursor is just past the last character (i.e., you just did a ^L or ^A), then the ^D will delete the last character of the line.
^E
erase
Erase to end of line. This will erase all of the text from the cursor to the end of line.
^F<c>
find
Find next occurrence of "c". The cursor will be moved to the first occurrence of the character "c" to the right of the cursor. If "c" is not found, you will hear a beep.
^F<n><c>
find
Find "nth" occurrence of "c" (1<=n<=8)
^G
goof
Undo all current modifications. Restores the line of text to its original form.
NOTE ^V, ^K, ^T^D, and ^T^V cannot be undone.
^H
backspace
Move back one char (non-destructive)
^I
tab
Skip 10 characters to right.
^J
justify
Deletes blanks from cursor to the first non-blank (does not delete that character).
^K
add
Requests QEDIT to add a line after current line. The current line will then be re-displayed for editing and you will get to edit the new line.
^L
lengthen
Goto end-of-line (synonym of ^A). Use ^L instead of ^A if you are on a Type Ahead Engine (TAE).
^M
return
Marks end of editing a line. Returns to the caller (i.e., QEDIT) the modified line.
NOTE ^M is the same as the Return key.
^O
overwrite
Initiate overwrite-mode and also turn off insert-mode (^B). In overwrite-mode, if you enter a character it will replace the one on the screen (i.e., overwrite it).
^P<#> <dir>
 
Move up/down some number of lines of text (only applicable) from QEDIT). For example, "^P3-" moves back 3 lines.
^Q
query
Displays Help information.
^S<c>
scan
Find previous occurrence of "c". The cursor will be moved to the first occurrence of "c" to the left of the current cursor position. If "c" is not found, you will hear a beep.
^S<n><c>
scan
Find nth occurrence of "c" (1<=n<=8).
^T
transparent
Terminates insert-mode and overwrite-mode. After ^T, if you type blanks, the cursor will simply move right one space without affecting the text. Transparent-mode is always turned off automatically whenever a non-blank printable character is entered, then overwrite-mode is turned on.
^T^D
delete
If done at column 1, will request caller to delete the line.
^T^V
splice
If done at column 1, will request caller to join the next line to the end of the current line. The newly spliced line will be displayed for editing.
^U
jUmpback
Move 10 characters to left. This is the opposite of ^I. As an aid to remembering them, ^I is the same as hitting the tab key, and ^U is just to the left of ^I on the keyboard.
^V
split
Split current line (at cursor) into two lines and modify both of them.
^X
eXamine
Examine (redisplay) current line.
^Y
Abort
Terminates modify mode without changing the current line.
^W
Wordproc
Shifts into "word processor" mode. In word processor mode, the next control character is used to select a function.

Word Processing Mode Functions

Table F.2 Word Processing Mode Functions
Char
Description
^W^C
Compress multiple blanks into single blanks.
^W^D
Delete Word. Deletes from the cursor to the next blank and then any following blanks up to (but not including) the next non-blank.
^W^H
Toggles a flag that remembers if you have an HP110 (flag is initially off). The flag is needed because the HP110 only implements a subset of the "standard" HP26xx escape sequences.
^W^L
Draws a ruled "line", like the "LT" command in QEDIT.
^W^N
Toggles "numbered" mode. A line-number prefix will be displayed in front of a line of text only both of the following are true: (1) line numbers have been requested (either via an M command from QEDIT or via ^W^N), and (2) the line-number was passed to QZMODIFY by QEDIT (i.e., you did an M command, not an MQ command).
^W<c>^D
Delete all characters from cursor up to, but not including character "c".
NOTE "c" must be a "printable" ASCII character (character code > 31). If the cursor is currently on a "c", it is deleted immediately before looking for the first "c". If "c" is not found, nothing is deleted.
^W^P
Put next character into text. This is useful when you want to put a control-character into the text. All non-printable characters will be displayed as periods (.), so they will take up one space on the line.
^W^S^D
Down-case all letters from cursor to end of line.
^W^S^U
Up-case all letters from cursor to end of line.
^W^S^T
Toggle-case all letters from cursor to end of line.
^W^T
Toggles the TypeAhead Engine (if you have one) through three states: disabled, enabled, ignored.
^W^V
Prints the version id of this editor.
^W?
Display the ASCII character code for the character that the cursor is on, in decimal and octal.

Symbol Chart

The following is an explanation of the symbols used above:
Table F.3 Symbol Chart
Symbol
Explanation
<c>
Any single character. This character will be searched for. If <c> is ^W, the search will be for a "word" (words are delimited by blanks) instead of for a single character.
<#>
Zero or more digits. For example, ^P12+ would mean move forward 12 lines. ^P3- would mean move back 3 lines.
<n>
One of: "^A, ^B, ..., ^H" and is interpreted as the number "1, 2, ..., 8" respectively.
<dir>
A "-" to move "back", or a "+" to move "forward".

NOTE When modifying a line longer than 79 characters, some commands (i.e., ^D, ^B, ^E) will not update any line of the screen display other than the one you are on. Whenever you want to see an accurate display of your text line, press "^X" to refresh the display.

You cannot use the special keys on an HP terminal (i.e., the cursor keys, insert char, delete char, clear). If you use them by accident, a ^X will refresh the display of the line you are editing.

TypeAhead

The remaining information applies only to those users who have TypeAhead Engines (from Telamon). The TypeAhead Engine (TAE) can be in one of three states from the editor’s viewpoint: disabled, enabled, or ignored. Each is defined below:

ignored
Editor will not do anything to either encourage or discourage the use of the TAE. This is the initial state (in most cases, however, see below).
enabled
Editor will place the TAE in single-character mode at entry and restore it to line mode at exit. This means that the HP3000 won’t lose typed ahead input anymore and that the special keys (i.e., cursor keys) will work nicely.
disabled
Editor will disable TypeAhead at entry (by sending ^A^V to the TAE) and enable it at exit. In this mode, the TAE is effectively taken out of the "circuit".

With QEDIT, you configure TAE-treatment as part of the SET MODIFY VEMODIFY command:
SET MOD VEMODIFY {Ignore the TAE}
SET MOD VEMODIFY TAEOFF {TAE exists, disable it.}
SET MOD VEMODIFY TAE {TAE exists, enable it.}
Additional commands are available only when the TAE is present and enabled:
Table F.4 Additional Commands
Command
Explanation
^W^T
Toggles the TypeAhead Engine through three states: disabled, enabled, or ignored.
Left arrow
The HP26xx left arrow key will move the cursor one space to the left.
Right arrow
The HP26xx right arrow key will move the cursor one space to the right.
Up arrow
Move up to the prior line of text, leaving cursor in the same column. The CRT screen is scrolled DOWN, so the line you were just editing is moved down one.
Down arrow
Move down to the next line of text, leaving cursor in the same column. The CRT screen is scrolled UP, so the line you were just editing is moved up one.
Delete char
Deletes the character under the cursor (like ^D).
Insert char
Turns on insert mode (like ^B).
Home up
Move cursor to column 1 of current line.
Home down
Move cursor to last column of current line.
Insert line
Ask QEDIT to add a new line AFTER the current line.
Delete line
Ask QEDIT to delete the current line.
^leftarrow
Moves cursor LEFT to the blank just after the nearest token to the left of the cursor. Valid ONLY if a TypeAhead Engine is present and enabled. Only available on HP264x terminals.
^rightarrow
Moves cursor RIGHT until it hits the next token. Will not move past current end of text. Valid ONLY if a TypeAhead Engine is present and enabled. Only available on HP264x terminals.

Lund Performance Solutions
www.lund.com
Voice: (541) 812-7600
Fax: (541) 81207611
info@lund.com
TOCPREVNEXTINDEX