svn commit: r316477 - head/usr.bin/grep

Andrey Chernov ache at freebsd.org
Tue Apr 4 12:07:48 UTC 2017


On 04.04.2017 2:16, Ed Maste wrote:
>  			if (color) 
> -				fprintf(stdout, "\33[m\33[K");
> +				fprintf(stdout, "\33[00m\33[K");

Please back that one out. We don't need to handle internally or print
remotely excessive 00.
At least according to
https://en.wikipedia.org/wiki/ANSI_escape_code
"With no parameters, CSI m is treated as CSI 0 m (reset / normal), which
is typical of most of the ANSI escape sequences."



More information about the svn-src-head mailing list