aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c4
-rw-r--r--src/jalv_internal.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 79847c7..f0f335e 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -496,9 +496,9 @@ jack_process_cb(jack_nframes_t nframes, void* data)
char* str = sratom_to_turtle(
jalv->sratom, &jalv->unmap, "time:", NULL, NULL,
lv2_pos->type, lv2_pos->size, LV2_ATOM_BODY(lv2_pos));
- jalv_ansi_start(stderr, 36);
+ jalv_ansi_start(stdout, 36);
printf("\n## Position ##\n%s\n", str);
- jalv_ansi_reset(stderr);
+ jalv_ansi_reset(stdout);
free(str);
}
}
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 96433c5..bda4016 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -448,6 +448,7 @@ jalv_ansi_reset(FILE* stream)
#ifdef HAVE_ISATTY
if (isatty(fileno(stream))) {
fprintf(stream, "\033[0m");
+ fflush(stream);
}
#endif
}