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

def msg_curse(self, args=None):

    ret = []
    if (not self.stats):
        msg = 'PER    CPU    not    available'
        ret.append(self.curse_add_line(msg, 'TITLE'))
        return ret
    msg = '{:8}'.format('PER    CPU')
    ret.append(self.curse_add_line(msg, 'TITLE'))
    for cpu in self.stats:
        try:
            msg = '{:6.1f}%'.format(cpu['total'])
        except TypeError:
            msg = '{:>6}%'.format('?')
        ret.append(self.curse_add_line(msg))
    for stat in ['user', 'system', 'idle', 'iowait', 'steal']:
        if (stat not in self.stats[0]):
            continue
        ret.append(self.curse_new_line())
        msg = '{:8}'.format((stat + ':'))
        ret.append(self.curse_add_line(msg))
        for cpu in self.stats:
            try:
                msg = '{:6.1f}%'.format(cpu[stat])
            except TypeError:
                msg = '{:>6}%'.format('?')
            ret.append(self.curse_add_line(msg, self.get_alert(cpu[stat], header=stat)))
    return ret
