]> git.mdlowis.com Git - archive/afm.git/commitdiff
Flash terminal screen on invalid key press
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 25 Jul 2014 16:17:05 +0000 (12:17 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 25 Jul 2014 16:17:05 +0000 (12:17 -0400)
source/input.c

index 58d4f1ad3073ad107c1f1d8349a1b1074afe6de9..bb3ad6376a5b7481e3a213f86301670afca3759a 100644 (file)
@@ -56,6 +56,7 @@ void input_handle_key(char ch) {
     /* If no more room then reset the buffer */
     if (len+1 >= 16) {
         beep();
+        flash();
         len = 0;
         Key_Buffer[0] = '\0';
     }
@@ -92,6 +93,7 @@ void input_handle_key(char ch) {
          * finding a longer match, then throw out the buffer and start over */
         if(!match_found && !more_matches) {
             beep();
+            flash();
             len = 0;
             Key_Buffer[0] = '\0';
         }