From 31b5189a8145b2b514d69165997e2e443f52dd52 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 29 Mar 2009 18:17:59 -0700 Subject: [PATCH] Add a command for repeating (/r) This is particularly useful for audio challenges which aren't readily available for observation if missed the first time. --- mnemon.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mnemon.c b/mnemon.c index 054e21c..56a518d 100644 --- a/mnemon.c +++ b/mnemon.c @@ -1041,6 +1041,7 @@ mnemon_handle_command (mnemon_t *mnemon, const char *arg; int len; switch (command[0]) { + /* 'h' for histogram */ case 'h': { char *category = NULL; @@ -1059,6 +1060,12 @@ mnemon_handle_command (mnemon_t *mnemon, mnemon_print_histogram (mnemon, category, length); } break; + /* 'r' for repeat */ + case 'r': + { + /* Nothing necessary for repeating. */ + } + break; default: printf ("Unknown command: %s\n", command); break; -- 2.43.0