ID:               24067
 User updated by:  garrote at dm dot com dot br
 Reported By:      garrote at dm dot com dot br
-Status:           Feedback
+Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: linux 2.4.20
 PHP Version:      4.3.2
 New Comment:

sorry.....
initialize, create window, set color
// the window was create with 20 lines and 60 colums...so
//$nr_linhas=20; $nr_colunas=60;

ncurses_wborder($win, 0,0,0,0,0,0,0,0);
$l = 1;
while($l < $nr_linhas - 1) {
$c = 1;
   ncurses_wmove($win, $l, 1);
   while($c++ < $nr_colunas - 1) {
      ncurses_waddch($win, 65);
      //ncurses_wrefresh($win); // only here attribute is set
   }
   $l++;
   // using wrefresh here nothing change
}
// using wrefresh here nothing change

using waddstr seems the same thing.
if you trie to use waddch once the attribute is set ok.
but using routine to put more than 13 charachters its necessery use
wrefresh (after 13 characters).
:)


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

[2003-06-06 14:42:48] [EMAIL PROTECTED]

Please provide a complete but short example script.


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

[2003-06-06 14:40:47] garrote at dm dot com dot br

it seems that using ncurses_waddch($window, ascii space) do not set the
attribute properly without forcing the wrefresh.
if you use these function with, for example ascii "A" (65), its not
necessary the wrefresh after the ncurses_waddch.
using wrefresh after all waddch causes overhead cpu usage.

php 4.3.2 built with ncurses

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


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

Reply via email to