(self)
return(None)
iterate over all the terminals to find which, if any, has focus
iterate over all the terminals to find which, if any, has focus
iterate over all the terminals to find which if any has focus
def get_focussed_terminal(self):
        """iterate over all the terminals to find which, if any, has focus"""
        for terminal in self.terminals:
            if terminal.has_focus():
                return(terminal)
        return(None)
def get_focussed_terminal ( self ) : for terminal in self . terminals : if terminal . has_focus ( ) : return ( terminal ) return ( None )