Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5228

Re: PHP ncurses

From crankypuss <no@email.thanks>
Newsgroups comp.lang.php
Subject Re: PHP ncurses
Date 2012-03-25 07:18 -0600
Organization NewsGuy - Unlimited Usenet $19.95
Message-ID <jkn5ua015nb@news6.newsguy.com> (permalink)
References <jkkvpj0k9p@news4.newsguy.com>

Show all headers | View raw


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.

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

PHP ncurses crankypuss <no@email.thanks> - 2012-03-24 11:20 -0600
  Re: PHP ncurses crankypuss <no@email.thanks> - 2012-03-25 07:18 -0600

csiph-web