For now, if you’re on a unix platform, you can try a wrapper script like this:



#!/bin/bash

export COLOR_NC='^[[0m'
export COLOR_RED='^[[1;31m’

fossil $* |\
sed -e "s/ERROR/${COLOR_RED}ERROR${COLOR_NC}/g” \
sed -e “s/WARNING/${COLOR_RED}WARNING${COLOR_NC}/g”







On Apr 24, 2016, at 4:07 AM, Marko Käning <sec001+fos...@posteo.net> wrote:

> Hi devs,
> 
> it would be great if one could colorise Fossil’s output on the console!
> 
> Quite a few times I missed an error or warning message which slipped in 
> between of many lines of the usual fossil output on the console.
> 
> Red colouring of words like “warning” or “error” would be very helpful there.
> 
> The poor man’s solution would at least be to use capital letters and some 
> sort of line head along the lines of
> 
>       > ERROR: blaa
>       > WARNING: blubb
> 
> Right now I can’t send an example of such a easily slipping through message, 
> but I can deliver if I come across one again.
> 
> Greets,
> Marko
> 
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

_______________________________________________
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