diff options
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |