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

def msg_curse(self, args=None):

    ret = []
    if args.disable_process:
        msg = "PROCESSES    DISABLED    (press    'z'    to    display)"
        ret.append(self.curse_add_line(msg))
        return ret
    if (not self.stats):
        return ret
    if (glances_processes.process_filter is not None):
        msg = 'Processes    filter:'
        ret.append(self.curse_add_line(msg, 'TITLE'))
        msg = '    {}    '.format(glances_processes.process_filter)
        if (glances_processes.process_filter_key is not None):
            msg += 'on    column    {}    '.format(glances_processes.process_filter_key)
        ret.append(self.curse_add_line(msg, 'FILTER'))
        msg = "('ENTER'    to    edit,    'E'    to    reset)"
        ret.append(self.curse_add_line(msg))
        ret.append(self.curse_new_line())
    msg = 'TASKS'
    ret.append(self.curse_add_line(msg, 'TITLE'))
    other = self.stats['total']
    msg = '{:>4}'.format(self.stats['total'])
    ret.append(self.curse_add_line(msg))
    if ('thread' in self.stats):
        msg = '    ({}    thr),'.format(self.stats['thread'])
        ret.append(self.curse_add_line(msg))
    if ('running' in self.stats):
        other -= self.stats['running']
        msg = '    {}    run,'.format(self.stats['running'])
        ret.append(self.curse_add_line(msg))
    if ('sleeping' in self.stats):
        other -= self.stats['sleeping']
        msg = '    {}    slp,'.format(self.stats['sleeping'])
        ret.append(self.curse_add_line(msg))
    msg = '    {}    oth    '.format(other)
    ret.append(self.curse_add_line(msg))
    if glances_processes.auto_sort:
        msg = 'sorted    automatically'
        ret.append(self.curse_add_line(msg))
        msg = '    by    {}'.format(glances_processes.sort_key)
        ret.append(self.curse_add_line(msg))
    else:
        msg = 'sorted    by    {}'.format(glances_processes.sort_key)
        ret.append(self.curse_add_line(msg))
    ret[(-1)]['msg'] += (',    %s    view' % ('tree' if glances_processes.is_tree_enabled() else 'flat'))
    return ret
