]> pd.if.org Git - pd_readline/blobdiff - testkey.c
More progress.
[pd_readline] / testkey.c
diff --git a/testkey.c b/testkey.c
new file mode 100644 (file)
index 0000000..f6e6246
--- /dev/null
+++ b/testkey.c
@@ -0,0 +1,26 @@
+
+
+/*  testkey.c  */ 
+
+/*  Prints the keycode for a given key */  
+
+
+
+#include <stdio.h> 
+#include <stdlib.h> 
+
+
+
+int main (void) 
+{
+
+int c; 
+
+while( (c == getchar() ) ) 
+{
+   printf("%d 0x%02X\n", c );
+} 
+
+return 0; 
+
+}