4 ms·
The "-r" option to less will allow the "raw" control characters to pass through. "less -r" will do what you want.
by ploxiln 10y ago
The "-r" option to less will allow the "raw" control characters to pass through. "less -r" will do what you want.
- therein 10y agoThat's great to know but you still need to make sure the process generating the output isn't trying to outsmart you. For instance ag (silver surfer) needs you to specify `ag --color` otherwise it will detect you are piping it and disable colors. And if I remember correctly, grep needs a `grep --color=always` to achieve the same.