From 1b114e50c931686fa2abcbd73158195373bac459 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Sun, 27 May 2018 22:32:45 +0000 Subject: [PATCH] dwatch(1): Eliminate ANSI dimming in developer mode "Developer mode" (passing of "-dev" options), which enables debugging features on compilation error, used to dim lines unrelated to error. That proved distracting and feedback from testers also confirmed that simply highlighting the line the compiler complains about is enough. Sponsored by: Smule, Inc. --- cddl/usr.sbin/dwatch/dwatch | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cddl/usr.sbin/dwatch/dwatch b/cddl/usr.sbin/dwatch/dwatch index 2cb8a5517b05..0002bad15a32 100755 --- a/cddl/usr.sbin/dwatch/dwatch +++ b/cddl/usr.sbin/dwatch/dwatch @@ -1057,10 +1057,6 @@ PSARGS_ACTION=$( cat <&9 ) slen = length(sprintf("%u", start)) elen = length(sprintf("%u", end)) N = elen > slen ? elen : slen - for (i = start; i <= end; i++) { - ti[i] = "\033[2m" - te[i] = "\033[22m" - } ti[line] = "\033[31m" te[line] = "\033[39m" fmt = "%s%*u %s%s\n"