ID:               28426
 Comment by:       lxndrpvlv at yahoo dot com
 Reported By:      andrewdk at comcast dot net
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: Gentoo Linux
 PHP Version:      5.0.0RC2
 Assigned To:      hholzgra
 New Comment:

<a href="http://www.msn-adult.com";>THE BEST PORNO ACCESS, SUPER ADULT
TEEN and SUPER ADULT MATURE</a>


Previous Comments:
------------------------------------------------------------------------

[2004-05-18 00:14:38] andrewdk at comcast dot net

Description:
------------
Using PHP CLI 5.0.0RC2
Ncurses 5.4
--with-ncurses

When using ncurses_mvwaddstr(), the text to be added does not appear in
the ncurses window specified, but appears in the top-left corner of the
terminal window. Neither of the y,x coordinates change where the text
goes.
This source example is derived from the Zend ncurses tutorial. 

Reproduce code:
---------------
<?php
        define("ESCAPE_KEY",27);
        $ncurse = ncurses_init();
        $small = ncurses_newwin(10,30,7,25);
        while(1){
        ncurses_wborder($small,0,0, 0,0, 0,0, 0,0);
        ncurses_wrefresh($small);
        $pressed = ncurses_getch();
        If($pressed == ESCAPE_KEY){
                        ncurses_end();
                        exit;
                }else{
                        ncurses_mvwaddstr($small,2,2,$pressed);
                }
        }
?>

Expected result:
----------------
This is expected to add the character number to the "$small" window at
coordinates 2,2; and exit when ESC is pressed. 

Actual result:
--------------
The charatcer is not inserted into the "$small" window at coords 2,2;
but onto the terminal at 0,0.
ESC works as expected (however there is a half-second delay from
pressing it to the program exiting.)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28426&edit=1

Reply via email to