TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-126
#DELTA Built-In Function
The G Command
The G command copies text from a variable level and inserts it in the buffer, moving
the pointer to the right of the text. The G command must be followed by a variable level
name; that name must be terminated by a dollar sign.
If you precede the G command with the : flag, #DELTA extracts (and deletes) the first
line from the variable level and puts it in the buffer. Without the : flag, #DELTA copies
the entire variable level into the buffer and the variable level remains unchanged.
The X command is the complementary function of the G command.
The H Command
The H command is equivalent to using the commands B,Z; that is, it loads the Y
register with the beginning of the buffer and the X register with the size of the buffer.
You can use the H command in conjunction with other commands to perform an
operation on the whole buffer. For example, the command HT displays the entire
buffer.
The I Command
The I command inserts text into the buffer at the current position. There are three
different ways to use the I command:
If there is no value in either X or Y registers and the I command is followed by a
text string terminated by a dollar sign, #DELTA inserts that text.
If there is a value in the X register, #DELTA inserts the ASCII character that
corresponds to that value into the buffer.
If there are values in the X and Y registers, #DELTA inserts the ASCII character
that corresponds to the X register into the buffer Y number of times.
This example illustrates the three different uses of the I command:
41> #DELTA test
#DELTA 42> j iA $
#DELTA 42> 1j v
#DELTA 42> EOF!
A(.) test
#DELTA 43> 32i v !32 is ASCII code for space
#DELTA 43> EOF!
A (.) test
#DELTA 44> 5,33i v !33 is ASCII code for exclamation point
#DELTA 44> EOF!
A !!!!!(.) test
#DELTA 45>
Only when there is no value in either X or Y register can you follow the I command with
text; in the other two cases, the I command must not be followed by text. If the text
string contains a dollar sign, you can use the @ flag with the I command to specify new