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
Return to the default flat view Create a new topic Submit Reply
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:
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.
[Message index]
 
Read Message
Read Message
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: Thu Nov 28 07:51:33 GMT 2024

Total time taken to generate the page: 0.04221 seconds