#40225 [Opn->Bgs]: ncurses_instr() is broken

From: Date: Wed, 24 Jan 2007 20:45:04 +0000
Subject: #40225 [Opn->Bgs]: ncurses_instr() is broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107996@lists.php.net to get a copy of this message
ID: 40225 Updated by: tony2001@php.net 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

« previous php.bugs (#107996) next »