ncal.c (746b67cdfab321e3f13565cb6e3e2b7931367e22) ncal.c (f379d691e54dd2e103f8a36d063999bcdb8b2729)
1/*-
2 * Copyright (c) 1997 Wolfgang Helbig
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 808 unchanged lines hidden (view full) ---

817 for (i = 0; i != 7; i++) {
818 l = 0;
819 for (j = firstm + i, k = 0; j < last; j += 7, k += dw) {
820 if (j >= first) {
821 if (jd_flag)
822 dt.d = j - jan1 + 1;
823 else
824 sdater(j, &dt);
1/*-
2 * Copyright (c) 1997 Wolfgang Helbig
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 808 unchanged lines hidden (view full) ---

817 for (i = 0; i != 7; i++) {
818 l = 0;
819 for (j = firstm + i, k = 0; j < last; j += 7, k += dw) {
820 if (j >= first) {
821 if (jd_flag)
822 dt.d = j - jan1 + 1;
823 else
824 sdater(j, &dt);
825 if (j == highlightdate && !flag_nohighlight)
825 if (j == highlightdate && !flag_nohighlight
826 && isatty(STDOUT_FILENO))
826 highlight(mlines->lines[i] + k,
827 ds + dt.d * dw, dw, &l);
828 else
829 memcpy(mlines->lines[i] + k + l,
830 ds + dt.d * dw, dw);
831 } else
832 memcpy(mlines->lines[i] + k + l, " ", dw);
833 }

--- 341 unchanged lines hidden ---
827 highlight(mlines->lines[i] + k,
828 ds + dt.d * dw, dw, &l);
829 else
830 memcpy(mlines->lines[i] + k + l,
831 ds + dt.d * dw, dw);
832 } else
833 memcpy(mlines->lines[i] + k + l, " ", dw);
834 }

--- 341 unchanged lines hidden ---