]> thyrsus.com Git - showkey.git/commitdiff
Modern compilers are picky.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 23:04:42 +0000 (19:04 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 23:04:42 +0000 (19:04 -0400)
showkey.c

index a169bb2bb08d8d23af226433eec3108391136d88..c25060afe1ac6304afb4f013ca7396a65657781e 100644 (file)
--- a/showkey.c
+++ b/showkey.c
@@ -33,6 +33,7 @@ THE SOFTWARE.<P>
 #include <stdio.h>
 #include <termios.h>
 #include <signal.h>
+#include <string.h>
 
 #define META   0x80
 #define ESC    0x1b
@@ -72,7 +73,8 @@ main()
     // Ship the raw control blts
     (void) tcsetattr(0, TCSANOW, &raw);
 
-    (void) printf("Type any key to see the sequence it sends, ^C to quit.\n");
+    (void) printf("Type any key to see the sequence it sends.\n");
+    (void) printf("Terminate with your shell interrupt character.\n");
     signalled = 0;
     while (!signalled)
     {