'Register fn as output hook [on specific consoles.]'

def setOutputHook(self, fn=None, consoles=None):

    if (consoles is None):
        consoles = self.consoles['hosts'].consoles
    for console in consoles:
        console.outputHook = fn
