From: [EMAIL PROTECTED] Operating system: SuSE 8.0 PHP version: 4.3.0RC3 PHP Bug Type: Unknown/Other Function Bug description: ncurses_getch and ncurses_wgetch diff
<?php // francesco riosa, ncurses test, 20021217 // telnet client = putty // use "e" = exit ; "w" window // see the difference of the function keys inside and outside the window putenv("TERM=linux"); ncurses_init(); $i=0; ncurses_move($i++, 1); ncurses_addstr("NCURSES_KEY_F1=" . NCURSES_KEY_F1 ); while ($ch <> ord('e')) { $ch = ncurses_getch(); ncurses_move($i++, 1); ncurses_addstr("key --$ch--"); if ($ch == ord('w')) { $winhandle = ncurses_newwin( 20, 40, $i++, 4); $j=1; ncurses_wborder($winhandle,0,0,0,0,0,0,0,0); while ($ch <> ord('e')) { $ch = ncurses_wgetch($winhandle); ncurses_wmove($winhandle, $j++, 1); ncurses_waddstr($winhandle, "key --$ch--"); } } } ncurses_end(); ?> -- Edit bug report at http://bugs.php.net/?id=21068&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21068&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21068&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21068&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21068&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21068&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21068&r=support Expected behavior: http://bugs.php.net/fix.php?id=21068&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21068&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21068&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21068&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21068&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21068&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21068&r=isapi