commands: Commands and keyboard shortcuts

class Commands(session)

Keep the list of commands and run them.

add_command(name, function)

Register a command with a given name and function to call.

run_command(text, report=True)

Invoke a command. The command and arguments are a string that will be parsed by a registered command function.

register_commands(commands)

Registers the standard commands.

class Keyboard_Shortcuts(session)

Maintain a list of multi-key keyboard shortcuts and run them in response to key presses.

register_shortcuts(keyboard_shortcuts)

Register the standard keyboard shortcuts.

Previous topic

Hydra Application

Next topic

files: Reading and writing files

This Page