php-windows Digest 23 Sep 2009 10:32:53 -0000 Issue 3702
Topics (messages 29623 through 29623):
Re: [PHP-DOC] Coloured console output support for windows.
29623 by: Richard Quadling
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
2009/9/22 Brett Bieber <brett.bie...@gmail.com>:
> Greetings
>
> On Tue, Sep 22, 2009 at 3:55 PM, Hannes Magnusson
> <hannes.magnus...@gmail.com> wrote:
>>> As for detection, once ANSICON is loaded, the ANSICON environment variable.
>>>
>>> But maybe ANSICon needs a small installer which has the option of
>>> doing this (Jason - possible?) automatically for those too nervous of
>>> editing registry.
>>>
>>>>
>>>> Plus, afaik, the PEAR installer doesn't support doing such things.
>
> Just so everyone is aware, PEAR supports post-install-scripts which
> can do anything PHP can do.
>
> This does require an additional step by the end-user when the package
> is installed, pear run-scripts mychannel/Package, but it is possible
> to do this.
>
> --
> Brett Bieber
>
Jason has suggested adding the ability to install/uninstall ANSICON so
that would take care of the registry setting.
I only look at the envvar to determine if I should provide coloured output.
One issue though, running php.exe via Windows run dialog (i.e. NOT at
a command prompt), will not load ANSICon as php.exe provides it's own
console window which isn't the same as loading the shell to run PHP.
MAYBE ... combining PHP with ANSICon COULD be a solution? Maybe an
php_ansicon.dll extension.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---