php-windows Digest 22 Sep 2009 22:05:25 -0000 Issue 3701

Topics (messages 29621 through 29622):

Re: [PHP-DOC] Coloured console output support for windows.
        29621 by: Hannes Magnusson
        29622 by: Brett Bieber

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 ---
On Tue, Sep 22, 2009 at 11:38, Richard Quadling
<rquadl...@googlemail.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.
>>
>
> !is_null(getenv('ANSICON')) ?

We cannot do any such check at install time.

We can do it when running the application, but then we'd have to check
the registry if we already have added the setting before trying to
adding it yet again.

In any case, I don't think its the job of PhD to do registry magic.
Check if the environment variable exists, and then print out color
codes however is something we should probably be doing.

-Hannes

--- End Message ---
--- Begin Message ---
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

--- End Message ---

Reply via email to