diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 16:56:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 16:56:20 -0400 |
commit | e9881593d569f5838cb7897c6fff76ce7406c794 (patch) | |
tree | 771c70e67b356a6852284638b0dffa135f7702a5 | |
parent | 398b7e32e003e17e9805e4c1dbfa12fc59373c17 (diff) | |
download | jalv-e9881593d569f5838cb7897c6fff76ce7406c794.tar.gz jalv-e9881593d569f5838cb7897c6fff76ce7406c794.tar.bz2 jalv-e9881593d569f5838cb7897c6fff76ce7406c794.zip |
Fix log colour state
-rw-r--r-- | src/jalv.c | 4 | ||||
-rw-r--r-- | src/jalv_internal.h | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -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 } |