hi

i have a problem with curses on openbsd 4.4. i can not set up to have raw(3) mode and receiving the KEY_F(n) values using getch(3). it always send the esc sequence: 27, 79, 80 for F1; 27, 79, 81 for F2 etc...

i am trying with:
initscr();
noecho();
raw();
keypad(stdscr, TRUE);
nodelay(stdscr, TRUE);

even the example [url] provided below produces the same result. do you have any idea how to set up curses to be able to receive the predefined values KEY_ using the getch(3) function?

thanks
bdz

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#INITEX

Reply via email to