'Return the dict to display in the curse interface.'

def msg_curse(self, args=None, max_width=None):

    ret = []
    if ((not self.stats) or args.disable_ports):
        return ret
    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:
                status = '{0:.0f}ms'.format((p['status'] * 1000.0))
            msg = '{:14.14}    '.format(p['description'])
            ret.append(self.curse_add_line(msg))
            msg = '{:>8}'.format(status)
            ret.append(self.curse_add_line(msg, self.get_ports_alert(p)))
            ret.append(self.curse_new_line())
        elif ('url' in p):
            msg = '{:14.14}    '.format(p['description'])
            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 = '{:>8}'.format(status)
            ret.append(self.curse_add_line(msg, self.get_web_alert(p)))
            ret.append(self.curse_new_line())
    try:
        ret.pop()
    except IndexError:
        pass
    return ret
