How do I use grep while keeping the original text color?
You could do this,
x | grep --color=never hello
To quickly test it, you can do,
ls -l /etc/ --color=always | grep --color=never .
Just a quick hack: when grep is sending output to a pipe, it also commutes to no-changing-color mode
x | grep hello | cat