Coloured console output support for windows.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

As previously mentioned, there is a tool for Windows XP+ called
ANSICON [1] which can be loaded via the registry or manually and
provides support for ANSI coloured output at the console.

Whilst editing the registry is not something many people actually like
doing, it can be done quite easily using the REG command from the
Windows Resource Toolkit.

REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t
REG_SZ /d "C:\Utils\ANSICon.exe -p"



Another useful feature is that ANSICON maintains an environment
variable which holds the current screensize ...

ANSICON=200x9999 (200x100)

200x9999 is the window size
200x100 is the current visible portion.

So, for text-tabled output, you can tailor the size to fit. Useful for
interactive console apps.

Regards,

Richard.


[1] http://adoxa.110mb.com/ansicon/index.html
-- 
-----
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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux