'Return the list to display in the UI.'

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

    ret = []
    if ((not self.stats) or self.is_disable()):
        return ret
    bar = Bar(max_width)
    if (('cpu_name' in self.stats) and ('cpu_hz_current' in self.stats) and ('cpu_hz' in self.stats)):
        msg_name = '{}    -    '.format(self.stats['cpu_name'])
        msg_freq = '{:.2f}/{:.2f}GHz'.format(self._hz_to_ghz(self.stats['cpu_hz_current']), self._hz_to_ghz(self.stats['cpu_hz']))
        if ((len((msg_name + msg_freq)) - 6) <= max_width):
            ret.append(self.curse_add_line(msg_name))
        ret.append(self.curse_add_line(msg_freq))
        ret.append(self.curse_new_line())
    for key in ['cpu', 'mem', 'swap']:
        if ((key == 'cpu') and args.percpu):
            for cpu in self.stats['percpu']:
                bar.percent = cpu['total']
                if (cpu[cpu['key']] < 10):
                    msg = '{:3}{}    '.format(key.upper(), cpu['cpu_number'])
                else:
                    msg = '{:4}    '.format(cpu['cpu_number'])
                ret.extend(self._msg_create_line(msg, bar, key))
                ret.append(self.curse_new_line())
        else:
            bar.percent = self.stats[key]
            msg = '{:4}    '.format(key.upper())
            ret.extend(self._msg_create_line(msg, bar, key))
            ret.append(self.curse_new_line())
    ret.pop()
    return ret
