From: Ruben d'Arco Date: Wed, 6 Dec 2017 21:08:21 +0000 (+0000) Subject: Add colour to diff output of pdnsutil X-Git-Tag: dnsdist-1.3.0~169^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6063%2Fhead;p=thirdparty%2Fpdns.git Add colour to diff output of pdnsutil Fixes #3760 --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 05d5dee904..d13f51c220 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -918,7 +918,7 @@ int editZone(DNSSECKeeper& dk, const DNSName &zone) { set_difference(pre.cbegin(), pre.cend(), post.cbegin(), post.cend(), back_inserter(diff), DNSRecord::prettyCompare); for(const auto& d : diff) { ostringstream str; - str<<'-'<< d.d_name <<" "<getZoneRepresentation(true)<getZoneRepresentation(true)<<"\033[0m"<getZoneRepresentation(true)<getZoneRepresentation(true)<<"\033[0m"< 0)