From aeb8b794de44918a7aecf13f504b3158cd2a87e4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 7 Mar 2014 01:04:06 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/plugins/df | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/plugins/df') diff --git a/examples/plugins/df b/examples/plugins/df index 016bc16..4caa679 100644 --- a/examples/plugins/df +++ b/examples/plugins/df @@ -56,7 +56,8 @@ def redraw(): d.inodes, d.iused, d.ifree, usage(100 * d.iused / d.inodes)) texts.append(text) - bar.clear() - bar.draw_coloured_text(0, 10, 0, 2, '\n'.join(texts)) + text = '\n'.join(texts) + bar.partial_clear(0, bar.width, 10, 0, 2, text) + bar.draw_coloured_text(0, 10, 0, 2, text) # TODO this is very flickery -- cgit v1.2.3-70-g09d2