Macros

A macro is simply a set of commands which are executed by giving the macro name as if it were a command.

A macro is defined by the command MACRO. Anything entered after this command will be stored in the macro. The macro definition is finished by giving the command END_MACRO as a single item on the command line.

A macro is invoked by giving its name as if it was a command. A macro cannot have any arguments, but may get the values it needs from variables or via queries from the user.

Macros may be defined directly by the user in tty input mode, or in input files, such as the initialization file. A list of currently defined macros is given by the command SHOW MACRO.

Macros can be deleted by the DELETE command.


Here is an example of a macro that is part of the distribution:
Per Kraulis 12 Apr 1996.