HomeFreeBSD

cal: don't print terminal control characters unless stdout is a TTY

Description

cal: don't print terminal control characters unless stdout is a TTY

A similar change was made in svn r223931, but it was incomplete, working
only when the utility was invoked as "ncal". Fix the same issue when
invoking as "cal".

PR: 268936
Reported by: Ray Bellis <ray@bellis.me.uk>
Sponsored by: Axcient
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D38045

(cherry picked from commit 92e978439f0c3139775ad96d412959f5a74b17b6)

Details

Provenance
asomersAuthored on Jan 13 2023, 8:19 PM
Reviewer
imp
Differential Revision
D38045: cal: don't print terminal control characters unless stdout is a TTY
Parents
rG8b7b81fd64ec: Switch wg(4) to the new if_clone KPI
Branches
Unknown
Tags
Unknown