October 1, 1979 FRESS COMMANDS LINE AND CHAR DISP
9.2 LINE AND CHARACTER DISPLACEMENT ___________________________________
To facilitate the proper indentification of an <lp> or a
<scope>, line and/or character displacement numbers may be
specified in any command which requires either of these parameters
[see Section 5.7 for an explanation of <lp>, <scope>, and other
parameters]. The format of the command specification when using
these displacement values is:


<command><del><line-disp>[<char-disp>]<scope><parms>
0 _ <lp>


<command>.....The editing command to be executed.
<del>.........The key delimiter.
<line-disp>...An optionally signed ("+" or "-") number which
indicates the number of lines to be displaced
from the top of the Editing Buffer. This is
effectively a SCROLL of <line-disp> lines before
context-scanning begins.
<char-disp>...A signed ("+" or "-") number (default zero)
indicating the number of characters to be
displaced into or from the line before
context-scanning begins, after a SCROLL of
<line-disp>.
<parms>.......Any other parameters and delimiters the command
requires.
102 -- Section 5 Release 9.1 FRESS Resource Manual
October 1, 1979 FRESS COMMANDS LINE AND CHAR DISP
NOTES _____
must be contiguous <line-disp> and <char-disp> __________________ (no intervening
must be followed by the LP-Separator ("") blanks), and _______________________________________________,
whether or not a context pattern follows.
The first displayed line of the Editing Buffer is numbered
zero.
The first character of each line is numbered zero.
The LP Separator is used to indicate to FRESS that line and
character displacement numbers are being used.
This facility is useful for modifying the file above the top of
the current Editing Buffer, as well as modifying a text pattern
which occurs at least once before in the Editing Buffer.
WARNINGS ________
This facility should not be specified for any command which
does not have an <lp> or <scope> parameter.
EXAMPLES ________
Db2amount _/________
"amount," which occurs after the second line (i.e., starting
on the third line) of the Editing Buffer, is DELETEd.
(Perhaps "amount" also occurs in the first or second lines,
but this occurrence is not the one the user wishes to
delete.)
S/-1+10amount/text ___________________
"text" is SUBSTITUTEd for "amount" which begins somewhere
after the tenth character in the line above the top of the
display.
D/2+2 ______
The user wishes to DELETE the third character in the third
line of the buffer. Omitting the context pattern causes the
first character after the indicated SCROLL and move to be
considered the <lp> character. In this case, the user
specified a SCROLL of 2 lines and a move of 2 characters
into the line. A more useful application might be to delete
the word which contains the third character in the third
line of the buffer. In this case the user could type
"D-w/2+2" (see Section 5.5).
FRESS Resource Manual Release 9.1 FRESS RSection 5.2 -- 103
Previous Page Next Page