Merge pull request #49 from DoctorSher/master

Flushed stdout after every group is printed in an iteration.
This commit is contained in:
Thomas Graf 2016-10-18 13:01:06 +02:00 committed by GitHub
commit 8b2638c349
2 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ static void ascii_draw_group(struct element_group *g, void *arg)
static void ascii_draw(void)
{
group_foreach(ascii_draw_group, NULL);
fflush(stdout);
if (c_quit_after > 0)
if (--c_quit_after == 0)

View File

@ -166,6 +166,7 @@ static void draw_element(struct element_group *g, struct element *e, void *arg)
static void format_draw(void)
{
group_foreach_recursive(draw_element, NULL);
fflush(stdout);
if (c_quit_after > 0)
if (--c_quit_after == 0)