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

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

    ret = []
    if ((not self.stats) or self.is_disable()):
        return ret
    if ((max_width is not None) and (max_width >= 23)):
        ifname_max_width = (max_width - 14)
    else:
        ifname_max_width = 9
    msg = '{:{width}}'.format('NETWORK', width=ifname_max_width)
    ret.append(self.curse_add_line(msg, 'TITLE'))
    if args.network_cumul:
        if args.network_sum:
            msg = '{:>14}'.format('Rx+Tx')
            ret.append(self.curse_add_line(msg))
        else:
            msg = '{:>7}'.format('Rx')
            ret.append(self.curse_add_line(msg))
            msg = '{:>7}'.format('Tx')
            ret.append(self.curse_add_line(msg))
    elif args.network_sum:
        msg = '{:>14}'.format('Rx+Tx/s')
        ret.append(self.curse_add_line(msg))
    else:
        msg = '{:>7}'.format('Rx/s')
        ret.append(self.curse_add_line(msg))
        msg = '{:>7}'.format('Tx/s')
        ret.append(self.curse_add_line(msg))
    for i in sorted(self.stats, key=operator.itemgetter(self.get_key())):
        if (('is_up' in i) and (i['is_up'] is False)):
            continue
        ifrealname = i['interface_name'].split(':')[0]
        ifname = self.has_alias(i['interface_name'])
        if (ifname is None):
            ifname = ifrealname
        if (len(ifname) > ifname_max_width):
            ifname = ('_' + ifname[((- ifname_max_width) + 1):])
        if args.byte:
            to_bit = 1
            unit = ''
        else:
            to_bit = 8
            unit = 'b'
        if args.network_cumul:
            rx = (self.auto_unit(int((i['cumulative_rx'] * to_bit))) + unit)
            tx = (self.auto_unit(int((i['cumulative_tx'] * to_bit))) + unit)
            sx = (self.auto_unit((int((i['cumulative_rx'] * to_bit)) + int((i['cumulative_tx'] * to_bit)))) + unit)
        else:
            rx = (self.auto_unit(int(((i['rx'] // i['time_since_update']) * to_bit))) + unit)
            tx = (self.auto_unit(int(((i['tx'] // i['time_since_update']) * to_bit))) + unit)
            sx = (self.auto_unit((int(((i['rx'] // i['time_since_update']) * to_bit)) + int(((i['tx'] // i['time_since_update']) * to_bit)))) + unit)
        ret.append(self.curse_new_line())
        msg = '{:{width}}'.format(ifname, width=ifname_max_width)
        ret.append(self.curse_add_line(msg))
        if args.network_sum:
            msg = '{:>14}'.format(sx)
            ret.append(self.curse_add_line(msg))
        else:
            msg = '{:>7}'.format(rx)
            ret.append(self.curse_add_line(msg, self.get_views(item=i[self.get_key()], key='rx', option='decoration')))
            msg = '{:>7}'.format(tx)
            ret.append(self.curse_add_line(msg, self.get_views(item=i[self.get_key()], key='tx', option='decoration')))
    return ret
