def msg_curse(self, args=None, max_width=None):
        """Return the dict to display in the curse interface."""
        # Init the return message
        ret = []

        # Only process if stats exist and display plugin enable...
        if not self.stats or args.disable_process:
            return ret

        # Compute the sort key
        process_sort_key = glances_processes.sort_key

        # Header
        self.__msg_curse_header(ret, process_sort_key, args)

        # Process list
        # Loop over processes (sorted by the sort key previously compute)
        first = True
        for p in self.__sort_stats(process_sort_key):
            ret.extend(self.get_process_curses_data(p, first, args))
            # End of extended stats
            first = False
        if glances_processes.process_filter is not None:
            if args.reset_minmax_tag:
                args.reset_minmax_tag = not args.reset_minmax_tag
                self.__mmm_reset()
            self.__msg_curse_sum(ret, args=args)
            self.__msg_curse_sum(ret, mmm='min', args=args)
            self.__msg_curse_sum(ret, mmm='max', args=args)

        # Return the message with decoration
        return ret
def msg_curse ( self , args = None , max_width = None ) : ret = [ ] if not self . stats or args . disable_process : return ret process_sort_key = glances_processes . sort_key self . __msg_curse_header ( ret , process_sort_key , args ) first = True for p in self . __sort_stats ( process_sort_key ) : ret . extend ( self . get_process_curses_data ( p , first , args ) ) first = False if glances_processes . process_filter is not None : if args . reset_minmax_tag : args . reset_minmax_tag = not args . reset_minmax_tag self . __mmm_reset ( ) self . __msg_curse_sum ( ret , args = args ) self . __msg_curse_sum ( ret , mmm = 'min' , args = args ) self . __msg_curse_sum ( ret , mmm = 'max' , args = args ) return ret
Return the dict to display in the curse interface.