LEARN_BEGIN and LEARN_END
These built-ins save all keystrokes typed between LEARN_BEGIN and
LEARN_END. LEARN_BEGIN starts saving all keystrokes that you type, until
LEARN_END is used. LEARN_END stops the "learn mode" and returns a
sequence comprising all the keystrokes you entered.
Syntax
LEARN_BEGIN ({EXACT | NOEXACT})
.
.
[your keystrokes]
.
.
learn := LEARN_END;
Parameters
EXACT Specifies that input entered for each READ_CHAR, READ_KEY,
or READ_LINE is read as the input for these built-ins when
the learn sequence is replayed.
NOEXACT Specifies that DECTPU should prompt for new input each time
a READ_CHAR, READ_KEY, or READ_LINE is replayed within the
learn sequence.
For more information, see the DEC Text Processing Utility Manual.