FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP ncurses
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP ncurses [message #177401] Sat, 24 March 2012 17:20 Go to next message
crankypuss is currently offline  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 Go to previous message
crankypuss is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Forum displays PHP code, not website
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 12:35:03 GMT 2024

Total time taken to generate the page: 0.02990 seconds