php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24067 ncurses
Submitted: 2003-06-06 14:40 UTC Modified: 2003-06-07 01:20 UTC
From: garrote at dm dot com dot br Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.2 OS: linux 2.4.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: garrote at dm dot com dot br
New email:
PHP Version: OS:

 

 [2003-06-06 14:40 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-06 14:42 UTC] sniper@php.net
Please provide a complete but short example script.

 [2003-06-06 14:52 UTC] garrote at dm dot com dot br
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).
:)
 [2003-06-07 01:20 UTC] georg@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Please also check/read the documentation for curses library.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 09:01:27 2024 UTC