summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3status.c b/i3status.c
index c6973f7..ded5799 100644
--- a/i3status.c
+++ b/i3status.c
@@ -442,8 +442,8 @@ int main(int argc, char *argv[]) {
if (output_format == O_I3BAR)
yajl_gen_array_open(json_gen);
else if (output_format == O_TERM)
- /* Restore the cursor-position */
- printf("\033[u");
+ /* Restore the cursor-position, clear line */
+ printf("\033[u\033[K");
for (j = 0; j < cfg_size(cfg, "order"); j++) {
if (j > 0)
print_seperator();