From: Carl Worth Date: Sat, 14 Mar 2009 19:09:24 +0000 (-0700) Subject: Print histogram when complete. X-Git-Url: https://git.cworth.org/git?p=mnemon;a=commitdiff_plain;h=26746c5d0ec7bb5ebcc35e01ece4caef1a6cb253;hp=776dfc7b017ad307113ed9634de3adedcf61c28f Print histogram when complete. This helps the user track progress, and also waits for the user to press enter before quitting, (useful for when executing mnemon as the comman within a terminal session, for example). --- diff --git a/mnemon.c b/mnemon.c index dfcc60e..bbc6456 100644 --- a/mnemon.c +++ b/mnemon.c @@ -1185,7 +1185,10 @@ mnemon_do_challenges (mnemon_t *mnemon) mnemon->unlearned || mnemon->to_master > 0); - printf ("Great job.\n"); + printf ("Great job.\nHere are your current results:\n"); + mnemon_print_histogram (mnemon, NULL, 0); + response = readline ("Press enter to quit.\n"); + free (response); } int