docs: def msg_curse(self, args=None, max_width=None):
          """Return the dict to display in the curse interface."""
          # Init the return message
          # Only process if stats exist and display plugin enable...
          ret = []
  
          if not self.stats or args.disable_ports:
              return ret
  
          # Max size for the interface name
          name_max_width = max_width - 7
  
          # Build the string message
          for p in self.stats:
              if 'host' in p:
                  if p['host'] is None:
                      status = 'None'
                  elif p['status'] is None:
                      status = 'Scanning'
                  elif isinstance(p['status'], bool_type) and p['status'] is True:
                      status = 'Open'
                  elif p['status'] == 0:
                      status = 'Timeout'
                  else:
                      # Convert second to ms
                      status = '{0:.0f}ms'.format(p['status'] * 1000.0)
  
                  msg = '{:{width}}'.format(p['description'][0:name_max_width],
                                            width=name_max_width)
                  ret.append(self.curse_add_line(msg))
                  msg = '{:>9}'.format(status)
                  ret.append(self.curse_add_line(msg,
                                                 self.get_ports_alert(p,
                                                                      header=p['indice'] + '_rtt')))
                  ret.append(self.curse_new_line())
              elif 'url' in p:
                  msg = '{:{width}}'.format(p['description'][0:name_max_width],
                                            width=name_max_width)
                  ret.append(self.curse_add_line(msg))
                  if isinstance(p['status'], numbers.Number):
                      status = 'Code {}'.format(p['status'])
                  elif p['status'] is None:
                      status = 'Scanning'
                  else:
                      status = p['status']
                  msg = '{:>9}'.format(status)
                  ret.append(self.curse_add_line(msg,
                                                 self.get_web_alert(p,
                                                                    header=p['indice'] + '_rtt')))
                  ret.append(self.curse_new_line())
  
          # Delete the last empty line
          try:
              ret.pop()
          except IndexError:
              pass
  
          return ret