]> git.cworth.org Git - mnemon/commitdiff
Print histogram when complete.
authorCarl Worth <cworth@cworth.org>
Sat, 14 Mar 2009 19:09:24 +0000 (12:09 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 14 Mar 2009 19:09:24 +0000 (12:09 -0700)
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

index dfcc60e78fe3a931c60f0d8b9d1a8d82ca798e0d..bbc6456b60f9b9c8c4e78c9dfdfc84da36ce723b 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -1185,7 +1185,10 @@ mnemon_do_challenges (mnemon_t *mnemon)
             mnemon->unlearned ||
             mnemon->to_master > 0);
 
             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
 }
 
 int