11 newterm(NULL
, stderr
, stdin
);
16 if ((result
= keyname(ch
)) == 0) {
17 /* ncurses does the whole thing, other implementations need this */
18 if ((result
= unctrl((chtype
)ch
)) == 0) {
19 sprintf(buffer
, "%#x", ch
);
24 printf("%s\n", result
);