'Add a new terminal to this Node with the given name. Extra
keyword arguments are passed to Terminal.__init__.
Causes sigTerminalAdded to be emitted.'

def addTerminal(self, name, **opts):

    name = self.nextTerminalName(name)
    term = Terminal(self, name, **opts)
    self.terminals[name] = term
    if term.isInput():
        self._inputs[name] = term
    elif term.isOutput():
        self._outputs[name] = term
    self.graphicsItem().updateTerminals()
    self.sigTerminalAdded.emit(self, term)
    return term
