PHP ncurses

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Has anyone here successfully used the PHP interface to ncurses?

Running it on an xterm, ncurses_init_color() always fails because
ncurses_can_change_color() always returns 0 (false, can't change color).

This means it's limited to the few lame default colors, unless I'm
misunderstanding something.  Also, NCURSES_A_DIM generates the same

Please, prove me wrong, okay? <g>

Re: PHP ncurses

On 03/24/2012 11:20 AM, crankypuss wrote:
Quoted text here. Click to load it

Seems it's a matter of telling xterm what kind of terminal to use, the
"-tn xterm-256color" option seems like the trick.

Site Timeline