TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-127
#DELTA Built-In Function
delimiters around the string; the character immediately to the right of the I command is
the new delimiter. The delimiter is changed only for the current I command.
For example:
#DELTA 45> @I/new$/ v
#DELTA 45> EOF!
a !!!!!new$(.) test
#DELTA 46> I string$ v
#DELTA 46> EOF!
a !!!!!new$ string(.) test
#DELTA 47>
#DELTA uses the ASCII code 0 to mean end-of-line; thus, 0I (or I) breaks a line.
The J Command
The J command moves the pointer to an absolute location specified by the contents of
the X register. Thus, 0J jumps to the beginning of the buffer; 23J jumps to the 23rd
character in the buffer. The J command accepts an X register value; if none is
specified, 0 is assumed.
The K Command
Use the K command to delete a specified range of text, in lines or characters. The
range of text can be specified either with an X register value or with X and Y register
values.
If you specify only an X register value, K deletes x lines starting at the current position.
(If x is negative, K deletes x lines preceding the current position.) The K command with
no range is equivalent to 1K; -K is equivalent to -1K.
If you specify both an X register value and a Y register value, K deletes a range of
characters from position y to position x.
The difference between the K and D commands is that K deletes lines or any range of
characters; D deletes only characters, starting at the current position.
The L Command
The L command moves the pointer the number of lines specified by the contents of the
X register. That value indicates the number of end-of-line characters to skip in search
of a new line. The command 0L moves to the beginning of the current line; 1L moves
to the beginning of the next line. The L command accepts an X register value; if none
is specified, 1 is assumed; -L is equivalent to -1L.
The M Command
The M command executes a #DELTA macro. The M command must be followed by a
variable level name, which must be type DELTA. The name must be terminated by a
dollar sign. The macro uses the same buffer and current pointer value as the command
stream that invoked it. The commands in the macro are executed until the macro