Date: Thu, 7 Jul 2011 20:33:18 +0200 From: Tobias Rehbein <tobias.rehbein@web.de> To: freebsd-questions@freebsd.org Subject: ncal(1) prints control sequences on stdout if stdout is not a tty Message-ID: <20110707183318.GA4157@sushi.pseudo.local>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110707183318.GA4157>