code: def StatusLine(self):
      
      pid = self.inferior.pid
      curthread = None
      threadnum = 0
      if pid:
        if not self.inferior.is_running:
          logging.warning('Inferior is not running.')
          self.Detach()
          pid = None
        else:
          try:
            # get a gdb running if it wasn't already.
            if not self.inferior.attached:
              self.inferior.StartGdb()
            curthread = self.inferior.current_thread
            threadnum = len(self.inferior.threads)
          except (inferior.ProxyError,
                  inferior.TimeoutError,
                  inferior.PositionError) as err:
            # This is not the kind of thing we want to be held up by
            logging.debug('Error while getting information in status line:%s'
                          % err.message)
            pass
      status = ('==> pid:[%s] #threads:[%s] current thread:[%s]' %
                (pid, threadnum, curthread))
      return status
docs: Generate the colored line indicating plugin status.