aboutsummaryrefslogtreecommitdiffstats
path: root/examples/plugins/df
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-07 01:04:06 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-07 01:04:06 +0100
commitaeb8b794de44918a7aecf13f504b3158cd2a87e4 (patch)
tree47282e4ea68edddbc9b0178925b531323f168afc /examples/plugins/df
parentdf demo (diff)
downloadxpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.gz
xpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.bz2
xpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--examples/plugins/df5
1 files changed, 3 insertions, 2 deletions
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