ID:               31876
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dgrimes at scvl dot com
-Status:           Open
+Status:           Feedback
-Bug Type:         Output Control
+Bug Type:         ncurses related
 Operating System: SCO OpenServer 5
 PHP Version:      4.3.10
 New Comment:

Works just fine for me using latest CVS checkout of PHP_4_3 branch.
Installed ncurses version: 5.4

Are you sure it isn't a bug in the ncurses version you have in your
system..?



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

[2005-02-07 22:08:10] dgrimes at scvl dot com

Description:
------------
When setting reverse video on and outputting a string, mvwaddstr
doesn't always out put the entire string. If the end of the string
being output is more than 6 spaces than the readable text in the
string, the reverse video will only apply to the readable characters in
the string. Are you confused yet?

OK: Have a string 'test   ', the full length of the string will be in
reverse video including the trailing spaces. If we have string that is
'test       ', only the word test will be in reverse video but the
trailing spaces will not be in reverse video. Remove one of the spaces
and then the whole string will be in reverse video. You can use strings
that consist only of spaces and get the same results.

Reproduce code:
---------------
<? 
$ncurse = ncurses_init(); 
$scn = ncurses_newwin (8,20,  0,0); 
ncurses_wattron($scn,NCURSES_A_REVERSE);
// test with 6 trailing spaces - works
ncurses_mvwaddstr($scn,1,1,'test      ');

// test with 7 trailing spaces - doesn't work
ncurses_mvwaddstr($scn,3,1,'test       ');

//longer string with 6 trailing spaces - works
ncurses_mvwaddstr($scn,5,1,'testx      ');

ncurses_wattroff($scn,NCURSES_A_REVERSE);
ncurses_wrefresh($scn); 
ncurses_end();
?>


Expected result:
----------------
I would expect the entire length of the string to be in reverse video.
What I'm trying to do is make each area of the screen that is an input
field to be easily identified.



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


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

Reply via email to