diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-07 01:04:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-07 01:04:06 +0100 |
commit | aeb8b794de44918a7aecf13f504b3158cd2a87e4 (patch) | |
tree | 47282e4ea68edddbc9b0178925b531323f168afc /examples/plugins | |
parent | df demo (diff) | |
download | xpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.gz xpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.bz2 xpybar-aeb8b794de44918a7aecf13f504b3158cd2a87e4.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/plugins')
-rw-r--r-- | examples/plugins/df | 5 |
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 |