hello all, Have a question on ncurses:
i am trying to acitvate the Function keys(at the top of the keyboard) by writting the following codes:
ch = getch();
if (ch == KEY_F(1))
printw("F1 key pressed");
now, my problem is that for some reason the function key is not read and the printw function does not work! is there another(ulternative) function that i should be using?