From owner-freebsd-questions@FreeBSD.ORG Thu Jul 7 18:57:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CA16106566B for ; Thu, 7 Jul 2011 18:57:53 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.freebsd.org (Postfix) with ESMTP id BD68A8FC1A for ; Thu, 7 Jul 2011 18:57:52 +0000 (UTC) Received: from smtp05.web.de ( [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 45CB019496423 for ; Thu, 7 Jul 2011 20:33:19 +0200 (CEST) Received: from [95.88.152.38] (helo=sushi.pseudo.local) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1QetO3-000322-00 for freebsd-questions@freebsd.org; Thu, 07 Jul 2011 20:33:19 +0200 Received: from sushi.pseudo.local (localhost [127.0.0.1]) by sushi.pseudo.local (8.14.4/8.14.4) with ESMTP id p67IXIHu004191 for ; Thu, 7 Jul 2011 20:33:18 +0200 (CEST) (envelope-from tobi@sushi.pseudo.local) Received: (from tobi@localhost) by sushi.pseudo.local (8.14.4/8.14.4/Submit) id p67IXI2r004190 for freebsd-questions@freebsd.org; Thu, 7 Jul 2011 20:33:18 +0200 (CEST) (envelope-from tobi) Date: Thu, 7 Jul 2011 20:33:18 +0200 From: Tobias Rehbein To: freebsd-questions@freebsd.org Message-ID: <20110707183318.GA4157@sushi.pseudo.local> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Sender: tobias.rehbein@web.de X-Sender: tobias.rehbein@web.de X-Provags-ID: V01U2FsdGVkX1/QZk2RZmGWrCtzFez53VmvoGLJEA7ofF3UR7Lx h9XtxnpFTgAEjBxileEp0/j2wvGBp+y78ywEbLsfL689stYR9w ZQa/IRaZ9H8artMMoeKQ== Subject: ncal(1) prints control sequences on stdout if stdout is not a tty X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 18:57:53 -0000 Hi list, being the maintainer of www/nanoblogger, which uses cal(1) to generate the blog calendar, I noticed that ncal(1), and therefore cal(1), prints control sequences to stdout in order to highlight the current date. This scrambles the calendar generated by nanoblogger. I fixed this issue in the port but talking to one of the folks of our local unix user group I was asked why I am not fixing this in ncal(1) as the sane behaviour would be to omit control sequences if stdout is not a tty. Thinking about that I decided to create a patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/158580 I just wanted to ask you fellow FreeBSD users what you think about this issue as feedback in PRs tends to be slow. Regards Tobias