From: dgrimes at scvl dot com Operating system: SCO OpenServer 5 PHP version: 4.3.10 PHP Bug Type: Output Control Bug description: Inconsistant Behaviour With ncurses_mvwaddstr
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 bug report at http://bugs.php.net/?id=31876&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31876&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31876&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31876&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31876&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31876&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31876&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31876&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31876&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31876&r=support Expected behavior: http://bugs.php.net/fix.php?id=31876&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31876&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31876&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31876&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31876&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31876&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31876&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31876&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31876&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31876&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31876&r=mysqlcfg
