curses raw mode
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
Re: curses raw mode
On Sat, Nov 15, 2008 at 12:09 PM, bdz [EMAIL PROTECTED] wrote: 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... The curses in base is quite old. If you download and install the new version from source, it works as expected.