PHP ncurses [message #177401] |
Sat, 24 March 2012 17:20 |
crankypuss
Messages: 147 Registered: March 2011
Karma: 0
|
Senior Member |
|
|
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
output as NCURSES_A_NORMAL.
Please, prove me wrong, okay? <g>
|
|
|
Re: PHP ncurses [message #177407 is a reply to message #177401] |
Sun, 25 March 2012 13:18 |
crankypuss
Messages: 147 Registered: March 2011
Karma: 0
|
Senior Member |
|
|
On 03/24/2012 11:20 AM, crankypuss wrote:
> 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
> output as NCURSES_A_NORMAL.
>
> Please, prove me wrong, okay? <g>
Seems it's a matter of telling xterm what kind of terminal to use, the
"-tn xterm-256color" option seems like the trick.
|
|
|