On 25/04/2016 16:37, Stephan Beal wrote:
> On Mon, Apr 25, 2016 at 5:34 PM, Joerg Sonnenberger <jo...@bec.de
> <mailto:jo...@bec.de>> wrote:
> 
>     On Mon, Apr 25, 2016 at 05:22:54PM +0200, Stephan Beal wrote:
>     > Yes, colorization is commonly-request feature, but is also not trivial 
> to
>     > do portably, which is probably why relatively few people are interested 
> in
>     > implementing it.
> 
>     Uses terminfo is not that difficult and there are even separate
>     implementations :)
> 
> 
> "not trivial" was admittedly possibly overstated. My own view is that as
> soon as code contains:
> 
> #if defined(WIN32)
> 
> the steam kinda goes out of my sails.  :/
> 
> i admit to being somewhat of a weenie in that regard.

So what you do is you have a wrapper around terminfo so the main fossil
code is clean and not platform specific.

For non terminfo platforms, just return nothing.

> ANSI escape codes cover _most_ cases but there are always terminals out
> there which get confused by them and i always seem to stumble across
> such terminals, so i am generally not a friend of colorized output.

I'm not a fan of ANSI escape codes either, but I do enjoy coloured
output on the console. Fight now I cope out and diff to a file and edit
in in vim for my colourised view, but I'd rather just pipe to a pager on
the console directly.

Roy
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to