Next: , Previous: Command Definitions, Up: The Command Structure



7.3.3 Command Editing Actions

The hard-coded initial command template can be modified, commands can be added and/or removed dynamically. That can be done using the function

     void add_new_command_into( struct cmd * cmd, struct cmd * category );

which adds the command cmd to the start of the category category and

     void add_new_command_after( struct cmd * cmd, struct cmd * after );

which adds the command cmd after the command after. To remove a command, use

     void remove_command( struct cmd * cmd, struct cmd * from );