'Spawn a command using a prompt widget, with tab-completion.
Parameters
prompt :
Text with which to prompt user (default: "spawn: ").
widget :
Name of the prompt widget (default: "prompt").
command :
command template (default: "%s").
complete :
Tab completion function (default: "cmd")'

def cmd_spawncmd(self, prompt='spawn', widget='prompt', command='%s', complete='cmd'):

    def f(args):
        if args:
            self.cmd_spawn((command % args))
    try:
        mb = self.widgetMap[widget]
        mb.startInput(prompt, f, complete)
    except KeyError:
        logger.error("No    widget    named    '{0:s}'    present.".format(widget))
