aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/keynames.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/test/keynames.c')
-rw-r--r--contrib/ncurses/test/keynames.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/ncurses/test/keynames.c b/contrib/ncurses/test/keynames.c
new file mode 100644
index 000000000000..88cadd2f8a84
--- /dev/null
+++ b/contrib/ncurses/test/keynames.c
@@ -0,0 +1,14 @@
+/*
+ * $Id: keynames.c,v 1.2 1998/06/06 22:45:13 tom Exp $
+ */
+
+#include <test.priv.h>
+
+int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED)
+{
+ int n;
+ for (n = -1; n < 512; n++) {
+ printf("%d(%5o):%s\n", n, n, keyname(n));
+ }
+ return EXIT_SUCCESS;
+}