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


Groups > comp.lang.php > #5222 > unrolled thread

PHP ncurses

Started bycrankypuss <no@email.thanks>
First post2012-03-24 11:20 -0600
Last post2012-03-25 07:18 -0600
Articles 2 — 1 participant

Back to article view | Back to comp.lang.php


Contents

  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

#5222 — PHP ncurses

Fromcrankypuss <no@email.thanks>
Date2012-03-24 11:20 -0600
SubjectPHP ncurses
Message-ID<jkkvpj0k9p@news4.newsguy.com>
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>

[toc] | [next] | [standalone]


#5228

Fromcrankypuss <no@email.thanks>
Date2012-03-25 07:18 -0600
Message-ID<jkn5ua015nb@news6.newsguy.com>
In reply to#5222
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web