|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28426 ncurses_mvwaddstr() doesn't add text into correct window
Submitted: 2004-05-18 00:14 UTC Modified: 2005-03-06 19:58 UTC
From: andrewdk at comcast dot net Assigned: hholzgra (profile)
Status: Not a bug Package: ncurses related
PHP Version: 5.0.0RC2 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: andrewdk at comcast dot net
New email:
PHP Version: OS:


 [2004-05-18 00:14 UTC] andrewdk at comcast dot net
Using PHP CLI 5.0.0RC2
Ncurses 5.4

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:
	$ncurse = ncurses_init();
	$small = ncurses_newwin(10,30,7,25);
	ncurses_wborder($small,0,0, 0,0, 0,0, 0,0);
	$pressed = ncurses_getch();
	If($pressed == ESCAPE_KEY){

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.)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-06 19:58 UTC]
It's just bug in your script. (and propably bug in the ncurses tutorial you got it from)
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Mar 04 19:01:24 2021 UTC