From: Michael D. Lowis Date: Fri, 25 Jul 2014 16:17:05 +0000 (-0400) Subject: Flash terminal screen on invalid key press X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ae3cd3839f4ce7e79e31e8ebbed24d700b424421;p=archive%2Fafm.git Flash terminal screen on invalid key press --- diff --git a/source/input.c b/source/input.c index 58d4f1a..bb3ad63 100644 --- a/source/input.c +++ b/source/input.c @@ -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'; }