From owner-freebsd-ports@FreeBSD.ORG Sun Feb 3 11:13:35 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 45D1259E for ; Sun, 3 Feb 2013 11:13:35 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-x22b.google.com (ia-in-x022b.1e100.net [IPv6:2607:f8b0:4001:c02::22b]) by mx1.freebsd.org (Postfix) with ESMTP id C10A224E for ; Sun, 3 Feb 2013 11:13:34 +0000 (UTC) Received: by mail-ia0-f171.google.com with SMTP id z13so7093658iaz.16 for ; Sun, 03 Feb 2013 03:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=BZYsvlsMrv29PVuVx0I2UP9Wd0n6caTNVWy2Y1A6Dno=; b=XirOwxbenIFL1YJaUMluFzqZbgtKwcZBvbMuasS6igtDAlXL9LzdZ+cSm4IRsmxyAK Tcj9iyR7o4NhiIllHNUhrUvi+OkgE/UBFg5pnfttX72p9iiiTz+zJgXmo3WoqNqzFO9w gPVb2UE3I8hog2gin2Nc9LtJXMGPjrm9PSAmUtsLmoK8O0Zs9Vui9NuizVFP1nB25O4I vUNjWoDsD5hdTpb8V8DklAmBBGQZoEsrI47ntF4io4GBFL3rgMt4bpZoOzxSKION7f10 WnRHEHW13WicVM9xojYJI+XREa/YeSscM0nSspSck0AJJWuMUZ5YV6q6ClqnPwf+eZO0 UW2A== X-Received: by 10.50.13.175 with SMTP id i15mr2791824igc.75.1359890014547; Sun, 03 Feb 2013 03:13:34 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.16.73 with HTTP; Sun, 3 Feb 2013 03:13:04 -0800 (PST) In-Reply-To: <510DE42F.40207@rawbw.com> References: <510DE42F.40207@rawbw.com> From: Chris Rees Date: Sun, 3 Feb 2013 11:13:04 +0000 X-Google-Sender-Auth: ouKKxr8rTBds24iBMZyEucRS_j4 Message-ID: Subject: Re: Why the port build log file has terminal escape sequences? To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: "ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2013 11:13:35 -0000 On 3 February 2013 04:14, Yuri wrote: > I redirect the log into the file: portupgrade -a 2>&1 | tee portupgrade.log > However, log still has escape sequences as if it was printed to the > terminal: > ^[[0m^[[34m^[[1mGenerating moc_mainwindow.cpp^M > ^[[0m^[[34m^[[1mGenerating subscriptionlistdelegate.moc^M > ^[[0m^[[34m^[[1mGenerating knconfigwidgets.moc^M > ^[[0m^[[34m^[[1mGenerating previewdialog.moc^M > ^[[34m^[[1mGenerating entriescountdialog.moc^M > > I believe this started not long ago. > What is wrong? I guess this is a cmake/clang port? Cmake, clang and several other tools give colorised output. This is achieved with escape sequences. Chris