From de47a8920cfdffb4516ff4739e0e048f027d1087 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Sun, 16 Feb 2014 17:02:08 +0100 Subject: [PATCH] Process display, first draft --- glances/plugins/glances_now.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/glances/plugins/glances_now.py b/glances/plugins/glances_now.py index 8b945f0a..63958fd2 100644 --- a/glances/plugins/glances_now.py +++ b/glances/plugins/glances_now.py @@ -56,3 +56,17 @@ class Plugin(GlancesPlugin): return self.stats + def msg_curse(self, args=None): + """ + Return the string to display in the curse interface + """ + + # Init the return message + ret = [] + + # Build the string message + # 23 is the padding for the process list + msg = _("{0:23}").format(self.stats) + ret.append(self.curse_add_line(msg)) + + return ret \ No newline at end of file