2 * $Id: keynames.c,v 1.7 2005/04/30 20:13:59 tom Exp $
8 main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
13 * Get the terminfo entry into memory, and tell ncurses that we want to
14 * use function keys. That will make it add any user-defined keys that
15 * appear in the terminfo.
17 newterm(getenv("TERM"), stderr, stdin);
21 for (n = -1; n < KEY_MAX + 512; n++) {
22 const char *result = keyname(n);
24 printf("%d(%5o):%s\n", n, n, result);
26 ExitProgram(EXIT_SUCCESS);