enhterm package

Submodules

enhterm.command module

enhterm.exit module

enhterm.help module

enhterm.impl module

Generic enhanced terminal command loop.

class enhterm.impl.EnhTerm(*args, **kwargs)[source]

Bases: enhterm.common.message.MessagesMixin, enhterm.common.exit.ExitMixin, enhterm.common.help.HelpMixin, enhterm.common.command.CommandMixin, enhterm.common.subcommand.SubcommandMixin, enhterm.common.macro.MacroMixin, enhterm.common.run_command.RunCommandsMixin, enhterm.common.log_level.LogLevelMixin, cmd.Cmd

Enhanced terminal.

This is a base class you can use in your project to create a command loop. It includes all common mixins defined by the package. If you need fewer mixins use this class as a template.

emptyline()[source]

Called when an empty line is entered in response to the prompt.

onecmd(line)[source]

Interpret the argument as though it had been typed in response to the prompt.

shortcuts = {'x': ('exit', '')}

enhterm.lang module

enhterm.log_level module

enhterm.macro module

enhterm.message module

enhterm.run_command module

enhterm.subcommand module

enhterm.util module

enhterm.util.needs_name(original_function)[source]

Decorator that extracts the name argument.

Module contents