summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 37fef55..2e0229e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -336,8 +336,10 @@ static void * rototiller_thread(void *_rt)
til_module_render(rt->module_context, rt->stream, ticks, &fragment);
til_fb_fragment_submit(fragment);
- if (rt->args.print_pipes) /* render threads are idle at this point */
+ if (rt->args.print_pipes) { /* render threads are idle at this point */
+ printf("\x1b[2J\x1b[;H"); /* ANSI codes for clear screen and move cursor to top left */
til_stream_fprint(rt->stream, stdout);
+ }
}
return NULL;
© All Rights Reserved