Merge pull request #49 from DoctorSher/master
Flushed stdout after every group is printed in an iteration.
This commit is contained in:
commit
8b2638c349
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user