From abf057e4d16fd1741f912b9c51f7bd0b1a63ced0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 21 Oct 2010 19:04:42 -0400 Subject: [PATCH] Modern compilers are picky. --- showkey.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.43.0