bug-make
[Top][All Lists]
Advanced

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

Re: [rfc] Colorized output for GNU make?


From: Eli Zaretskii
Subject: Re: [rfc] Colorized output for GNU make?
Date: Wed, 12 Oct 2011 00:05:51 +0200

> Date: Tue, 11 Oct 2011 22:11:23 +0200
> From: Sebastian Pipping <address@hidden>
> 
> >       * The implementation is clean and portable and doesn't add lots of
> >         complexity to the code.  Does everything support the color codes
> >         you're using?  I don't want to have to link with ncurses or
> >         something to get portable colorization.
> 
> No plans on using ncurses here.  I suppose if we do what grep does were
> safe enough portability-wise?  I'll check what I can learn from there.

Please don't assume that writing some special character sequences to
stdout is all that's needed.  This is so on Posix platforms, but not
Windows or DOS.  To be truly portable, there should be an API that
accepts a string and the information how to color it, and then a
platform-specific backend actually produces the colored output and
writes it to the screen.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]