From 26746c5d0ec7bb5ebcc35e01ece4caef1a6cb253 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 14 Mar 2009 12:09:24 -0700 Subject: [PATCH] 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). --- mnemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.0