'Display stats on the screen.
stats: Stats database to display
cs_status:
"None": standalone or server mode
"Connected": Client is connected to a Glances server
"SNMP": Client is connected to a SNMP server
"Disconnected": Client is disconnected from the server
Return:
True if the stats have been displayed
False if the help have been displayed'

def display(self, stats, cs_status=None):

    self.init_line_column()
    if (cs_status == 'SNMP'):
        plugin_max_width = 43
    else:
        plugin_max_width = None
    self.args.cs_status = cs_status
    __stat_display = self.__get_stat_display(stats, plugin_max_width)
    max_processes_displayed = (((self.screen.getmaxyx()[0] - 11) - self.get_stats_display_height(__stat_display['alert'])) - self.get_stats_display_height(__stat_display['docker']))
    try:
        if (self.args.enable_process_extended and (not self.args.process_tree)):
            max_processes_displayed -= 4
    except AttributeError:
        pass
    if (max_processes_displayed < 0):
        max_processes_displayed = 0
    if ((glances_processes.max_processes is None) or (glances_processes.max_processes != max_processes_displayed)):
        logger.debug('Set    number    of    displayed    processes    to    {}'.format(max_processes_displayed))
        glances_processes.max_processes = max_processes_displayed
    __stat_display['processlist'] = stats.get_plugin('processlist').get_stats_display(args=self.args)
    if self.args.help_tag:
        self.display_plugin(stats.get_plugin('help').get_stats_display(args=self.args))
        return False
    self.__display_firstline(__stat_display)
    self.__display_secondline(__stat_display, stats)
    self.__display_left(__stat_display)
    self.__display_right(__stat_display)
    if (self.graph_tag and self.args.export_graph):
        self.display_popup('Generate    graphs    history    in    {}\nPlease    wait...'.format(self.glances_graph.get_output_folder()))
        self.display_popup('Generate    graphs    history    in    {}\nDone:    {}    graphs    generated'.format(self.glances_graph.get_output_folder(), self.glances_graph.generate_graph(stats)))
    elif (self.reset_history_tag and self.args.export_graph):
        self.display_popup('Reset    graph    history')
        self.glances_graph.reset(stats)
    elif ((self.graph_tag or self.reset_history_tag) and (not self.args.export_graph)):
        try:
            self.glances_graph.graph_enabled()
        except Exception:
            self.display_popup('Graph    disabled\nEnable    it    using    --export-graph')
        else:
            self.display_popup('Graph    disabled')
    self.graph_tag = False
    self.reset_history_tag = False
    if (self.edit_filter and (cs_status is None)):
        new_filter = self.display_popup((((((((('Process    filter    pattern:    \n\n' + 'Examples:\n') + '-    python\n') + '-    .*python.*\n') + '-    \\/usr\\/lib.*\n') + '-    name:.*nautilus.*\n') + '-    cmdline:.*glances.*\n') + '-    username:nicolargo\n') + '-    username:^root                                '), is_input=True, input_value=glances_processes.process_filter_input)
        glances_processes.process_filter = new_filter
    elif (self.edit_filter and (cs_status is not None)):
        self.display_popup('Process    filter    only    available    in    standalone    mode')
    self.edit_filter = False
    return True
