ID:               21174
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: Linux
 PHP Version:      4.2.3
 New Comment:

Please check the man pages for standout and standend.

The documentation isn't finsihed still, but feel free to contribute.


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

[2002-12-24 15:49:20] [EMAIL PROTECTED]

I actually posted this to the comments for ncurses_attron and it was
removed as it is more of a question about why certain functions are
being put into ncurses-PHP and they asked that I post it here instead.


> The following are defined constants..
> 
> NCURSES_A_ALTCHARSET   Alternate character set
> NCURSES_A_BLINK        Blinking
> NCURSES_A_BOLD         Extra bright or bold
> NCURSES_A_DIM          Half bright
> NCURSES_A_INVIS        Invisible
> NCURSES_A_PROTECT      Protected
> NCURSES_A_REVERSE      Reverse video
> NCURSES_A_STANDOUT     Best highlighting mode of the
> terminal
> NCURSES_A_UNDERLINE    Underlining
> 
> so as the following:
> 
> ncurses_attron(NCURSES_A_BOLD); // turn on
> ncurses_addstr("Press ESC to exit"); // out put
> ncurses_hline(NCURSES_ACS_DIAMOND,5);// other fun
> stuff
> ncurses_attroff(NCURSES_A_BOLD); // turn off
> 
> Then I start looking around and see that for some
> reason they are creating functions to do this?
> i.e. 
> ncurses_standout(); // in place of
> NCURSES_A_STANDOUT ???
> and
> ncurses_standend();
> 
> umm.. guys, this makes no sense to create functions
> for each of the attr's
> Guess we will see once it is final.
> -- 

My point was that creating functions for doing this seems very odd..
I am not complaining about this as I am sure there is a reason for
doing it, but it really does seem odd and I was curious if there was
going to be ncurses_boldout() etc..

I have been going through a lot of this as I am writing and advanced
tutorial for ncurses with PHP and so most of my information for working
with these functions is actually coming from man pages for ncurses and
other ncurses programming pages I have found (mostly in C and Perl). 

I am really hoping to inspire some interest in php-ncurses programming
as it really makes PHP CLI application programs so much nicer and might
help people in similar positions to myself who are trying to get away
from Perl and C in favor or writing these interfaces in PHP.

Also, as you "well know" the documentation for ncurses_wborder and many
of the other ncurses_w.. function docs are missing and also over 100
defined constants. (DIAMOND, BLOCK WA_* etc).

Anyway, I would be willing to help with some of the documentation here
if it is needed.

Thanks

-Joel De Gan

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


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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to