Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175005227
D38045.id115105.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
401 B
Referenced Files
None
Subscribers
None
D38045.id115105.diff
View Options
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -930,7 +930,8 @@
dt.d = j - jan1 + 1;
else
sdateb(j, &dt);
- if (j == highlightdate && !flag_nohighlight)
+ if (j == highlightdate && !flag_nohighlight
+ && isatty(STDOUT_FILENO))
highlight(mlines->lines[i] + k,
ds + dt.d * dw, dw, &l);
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 8, 2:05 PM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40424413
Default Alt Text
D38045.id115105.diff (401 B)
Attached To
Mode
D38045: cal: don't print terminal control characters unless stdout is a TTY
Attached
Detach File
Event Timeline
Log In to Comment