code: def name(self):
          
          # Name, explicitely set for the window.
          if self.chosen_name:
              return self.chosen_name
          else:
              pane = self.active_pane
              if pane:
                  return pane.name
  
          return ''
docs: The name for this window as it should be displayed in the status bar.