I would like to display coloured output only for a partcular line.
Below is the code which works fine when run on cygwin:
echo -e '\e[0;31m' "Something failed"'\e[0m'
It displays the output properly with red color.
Now i would like to invoke the windows cmd prompt and generate the same output.
I would like to do the same thing using "cmd /c " option. But it does not work.
Below is the code of what i am trying to achieve as i am invoking from cygwin.
cmd /c echo -e '\e[0;31m' "Something failed"'\e[0m'
It does not produce colored output . I also tried using bin/echo but it still fails to display the red coloured output.
Is there any way through which i can achieve the red coloured output by invoking cmd /c from cygwin?