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>
MFC after: 2 weeks
Sponsored by: Axcient
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D38045

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
rGeb1795782cfc: kboot: Use standard set_currdev
Branches
Unknown
Tags
Unknown