ID: 40225
Updated by: [EMAIL PROTECTED]
Reported By: bnewton at networkmerchants dot com
-Status: Open
+Status: Bogus
Bug Type: ncurses related
Operating System: gentoo Linux 2006
PHP Version: 5.2.0
New Comment:
ncurses_instr() does completely different thing.
What you need is ncurses_getch().
Previous Comments:
------------------------------------------------------------------------
[2007-01-24 20:16:07] bnewton at networkmerchants dot com
Description:
------------
ncurses_instr appears to be broken. It returns a random number of
lowercase q's without waiting for actual user input.
Reproduce code:
---------------
$name = 0;
ncurses_init();
ncurses_addstr("Enter Your Name");
ncurses_move(1,0);
ncurses_instr($name);
ncurses_move(2,0);
ncurses_addstr(" Hello $name");
ncurses_getch();
ncurses_end();
Expected result:
----------------
Enter Your Name
Bill
Hello Bill
Actual result:
--------------
Enter Your Name
Bill
Hello qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
number of q's vary from execution to execution typically over one
hundred
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40225&edit=1