TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-115
#DELTA Built-In Function
the range between the current pointer position and the beginning of the current
line.
If you specify both X and Y register values, the range is the characters between
the absolute locations y and x. For example, 4,8T means type the characters
between the fourth character and eighth character in the buffer (this can include
end-of-line characters).
X Register Arithmetic
You can do mathematical operations on the contents of the X register. The available
operators are:
In each case, n can be a number or it can be any of these:
For example, these commands display the text from the current pointer position to the
character that is ten characters to the right of the current pointer position (note that the
first command simply displays the pointer location within the line):
#DELTA 24> v
#DELTA 24> EOF!
This is (.)a test string
#DELTA 25> .,.+10t
#DELTA 25> EOF!
a test str
Other examples of X register arithmetic are:
[#DEF zerofill DELTA |BODY|
0J == Jump to beginning of buffer.
6-Z,48I == Insert enough zeros to make 6 characters long.
] == End DEF
[#DEF truncate DELTA |BODY|
Z-79 ?G == If text is longer than 79 characters ...
79,ZK == ... delete excess characters.
'
] == End DEF
+ n Addition
- n Subtraction
* n Multiplication
/ n Division
. The current pointer
B The beginning of the buffer
FL The length of the text last inserted by an I command, or the
length of the string last found by an S command
Z The length of the buffer