Batch coloring not working after git output
Posted: 18 May 2021 01:33
Hello!
I'm using GIT and wrote a small helper script.
For better readability I'm using ESCAPE SEQUENCES for coloring.
It works for the first echo line, but after a git command e.g. git staus it's not working anymore.
My git_helper.at
It works with other programms than GIT, but that's not I want
So, does somebody has a sugestion?
Thank You.
I'm using GIT and wrote a small helper script.
For better readability I'm using ESCAPE SEQUENCES for coloring.
It works for the first echo line, but after a git command e.g. git staus it's not working anymore.
My git_helper.at
Code: Select all
echo <ESC>[35mThis line is in color mode, it works!<ESC>[0m
git status
echo <ESC>[35mThis line not, it shows only crypted char<ESC>[0m
So, does somebody has a sugestion?
Thank You.