From ae3cd3839f4ce7e79e31e8ebbed24d700b424421 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 25 Jul 2014 12:17:05 -0400 Subject: [PATCH] Flash terminal screen on invalid key press --- source/input.c | 2 ++ 1 file changed, 2 insertions(+) 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'; } -- 2.54.0