Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5222 > unrolled thread
| Started by | crankypuss <no@email.thanks> |
|---|---|
| First post | 2012-03-24 11:20 -0600 |
| Last post | 2012-03-25 07:18 -0600 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.php
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
| From | crankypuss <no@email.thanks> |
|---|---|
| Date | 2012-03-24 11:20 -0600 |
| Subject | PHP 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]
| From | crankypuss <no@email.thanks> |
|---|---|
| Date | 2012-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