[RFC] ColorD

Jens Mueller jens.k.mueller at gmx.de
Mon Oct 22 06:28:59 PDT 2012


Andrei Alexandrescu wrote:
> On 10/22/12 8:24 AM, Jens Mueller wrote:
> >Andrei Alexandrescu wrote:
> >>On 10/22/12 9:47 AM, Jens Mueller wrote:
> >>>This is probably interesting for Phobos. But I'm not the one to make a
> >>>decision. The core Phobos developers should decide.
> >>>Hopefully somebody is reading this.
> >>
> >>Off the top of my head something that is specific for only certain
> >>systems (Unixen in this case) is decidedly of less Phobos interest.
> >>We could, nevertheless, put such functionality in system-specific
> >>modules.
> >
> >It also works on Windows. Even already implemented. The situation is
> >similar to the file abstraction which has a different API in the Unix
> >world and the Windows world.
> >
> >Jens
> 
> Cool. Do all systems implement color as escape sequences?

No. On Windows you have to explicitly call a function.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686047%28v=vs.85%29.aspx

Jens


More information about the Digitalmars-d mailing list