]> git.cworth.org Git - mnemon/blobdiff - mnemon.c
Add a command for repeating (/r)
[mnemon] / mnemon.c
index 054e21cb59494210f1eccfb6b236482beb6ca92f..56a518d8ed752e63c06023d1c884474089346b76 100644 (file)
--- 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;