You are here: Re: Color in Windows CLI? « PHP Programming Language « IT news, forums, messages
Re: Color in Windows CLI?

Posted by Chung Leong on 10/05/53 11:33

Spudster3@gmail.com wrote:
> Does anyone know how to make PHP display colors in the CLI (Command
> Line Interface)? I've tried almost everything including ANSI.SYS under
> command.exe. I would like to find a way to do it under cmd.exe, I know
> it will do colors under Linux in CLI using codes like "←[0;34mtest
> ←←[0m←" for Blue, but I need something to work under Windows.
>
> Thanks!
>
> Spudster

If you can somehow get the Win32 module to work, the functions your
need are GetStdHandle() and SetConsoleTextAttribute(). Both are in
kernel32.dll I believe.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация