From: Eric S. Raymond Date: Thu, 21 Oct 2010 23:04:42 +0000 (-0400) Subject: Modern compilers are picky. X-Git-Tag: 1.5~8 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=abf057e4d16fd1741f912b9c51f7bd0b1a63ced0;p=showkey.git Modern compilers are picky. --- diff --git a/showkey.c b/showkey.c index a169bb2..c25060a 100644 --- a/showkey.c +++ b/showkey.c @@ -33,6 +33,7 @@ THE SOFTWARE.

#include #include #include +#include #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) {