Kód:
#include <stdio.h>
#include <ncurses.h>

main&#40;&#41;
&#123;
int ch;

initscr&#40;&#41;;
cbreak&#40;&#41;;
noecho&#40;&#41;;

ch=getch&#40;&#41;;
printf&#40;"\nstiskl jsi %c\n", ch&#41;;

endwin&#40;&#41;;
&#125;
je dobre si precist dokumentci k ncurses specialne fce initscr(), cbreak()/raw(), (no)echo(), endwin(). popr keypad() pro usnadneni identifikace klaves