summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-191-85/+87
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* o Use ISO 3166 county code for Sweden.maxim2012-02-221-1/+1
| | | | | | PR: standards/165400 Submitted by: Carsten Hey MFC after: 1 week
* Fix typo in order of markup and text.edwin2011-07-111-1/+1
|
* ncal(1) highlights the current date (or a date provided via parameter)edwin2011-07-112-1/+4
| | | | | | | | | even if stdout is not a tty. If stdout is not a tty the data is normally processed by other tools and no control sequences are expected. PR: bin/158580 MFC after: 1 week
* Use basename(3) to determine the name of the program.edwin2010-08-301-3/+2
| | | | Submitted by: Alexander Best <arundel@>
* Replace -b with -C and -B (as proposed by Alexander).edwin2010-03-212-9/+23
| | | | | Add -3, -A and -B to the usage. Update regression test for the new parameters.
* - With the introduction of -A, -B and -3, not all combinations ofedwin2010-03-122-86/+188
| | | | | | | | | arguments makes sense anymore. For example, what would a combination of -3 (show three months) and -y (show the whole year) do? We will abort on these cases. - Move the debug option -d to -H (from highlight), while -d is now used for setting the day of "today" so that -y and friends can be tested.
* - Fix the highlighting for non-terminals when the last week is notedwin2010-03-092-10/+22
| | | | | 7 days long. - "-m <N> <YYYY>" now prints only the month, not the whole year.
* - document the -3, -A and -B properly in Synopsis.edwin2010-03-072-59/+106
| | | | | | | | - add highlight of current date for non-terminals. - fix -J option. - code cleanup. MFC after: 2 weeks
* Remove no-op of WARNS?=edwin2010-03-041-1/+0
| | | | Submitted by: Ulrich Sp??rlein <uqs@spoerlein.net>
* - Implement -3 option (show previous, this and next month) option.edwin2010-03-043-206/+266
| | | | | | | | | - Add -A option (months after this month). - Add -B option (months before this month). - Fix highlighting of today in year overview. - Fix aligning of "foreign" characters. MFC after: 2 weeks
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Since the width is always 2, it is enough to put just oneume2009-06-181-2/+2
| | | | | | trailing space is enough. MFC after: 1 week
* Fix column width of weekday names for multibyte locales.ume2009-06-171-9/+18
| | | | | | Noticed by: nyan Discussed with: matusita, takawata MFC after: 1 week
* Mention -h in usage() and manpage. Rename term_{r,e} to term_{so,se}.rdivacky2009-05-022-25/+27
| | | | | Suggested by: ru Approved by: ed (mentor)
* Fixed multi-byte character support to actually work.ru2009-04-301-6/+6
|
* Fixed missing dependency.ru2009-04-301-1/+1
|
* Couple of changes based on feedbackrdivacky2009-04-211-4/+7
| | | | | | | | | | | | o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] Suggested by: naddy mips.inka.de (Christian Weisgerber) [1] Requested by: danfe, deischen [2] Suggested by: jmallett [3] Approved by: ed (mentor)
* Implement highlighting of today in month view of cal/ncal just likerdivacky2009-04-202-14/+82
| | | | | | | | gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. Reviewed by: Simon 'corecode' Schubert <corecode fs.ei.tum.de> Approved by: ed
* Multibyte character support for cal(1).das2009-03-142-38/+52
| | | | PR: 131578
* Implement a new feature for the "-m" option: if the month number iswollman2008-12-222-21/+45
| | | | | | | | | followed by 'f' or 'p', use the following or preceding month of that number, respectively. Document this. Also includes other minor grammatical and punctuation fixes to the manual page (capitalize Easter, etc.). MFC after: 1 month
* Document incorrect handling of multibyte characters.tjr2005-10-231-1/+5
| | | | PR: 87724
* Remove unnecessary SRCS= where could be guessed directly by ourdelphij2005-01-271-1/+0
| | | | | | bsd.*.mk infrasture. Obtained from: ru
* Scheduled mdoc(7) sweep.ru2005-01-111-1/+1
|
* Use ?= with WARNS.wollman2004-11-301-1/+1
| | | | Requested by: ru
* Add a `-m month' flag to provide a more convenient interface forwollman2004-11-233-28/+45
| | | | | | | | | displaying a calendar for a specific month of the current year than `cal $(date +"%Y") month'. A few minor code cleanups. Set WARNS=1. (This code is WARNS=5 clean except for "`O' modifier used with `%B' strftime format", which is legal in FreeBSD but GCC doesn't know about.) MFC after: 1 week
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Teach ncal(1) about month names specified on the command line.roam2002-10-022-3/+24
| | | | | | Reviewed by: -audit Approved by: silence on -audit MFC after: 3 weeks
* Correct History: cal(1) appeared in V5, not V6.tjr2002-06-031-1/+1
|
* Easy warns fixes; constify.markm2002-04-281-3/+3
|
* Style; line up columns, space things out more consistently.markm2002-04-281-6/+7
|
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* Remove gcc specific compiler flags, at least one of which doesn't work withjhb2002-01-081-2/+0
| | | | gcc 3.0.2. (-fstrict-prototypes)
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Handle ASCII and US-ASCII aliasesache2001-06-101-1/+3
|
* Remove "SU" - not valid country codeache2001-06-101-2/+3
| | | | Fix locale comparison with "C", add "POSIX"
* Properly deal with one char weekdaysache2001-03-221-4/+8
|
* Uppercase first month letterache2001-03-221-1/+6
| | | | Terminate weekday string
* Use nl_langinfo instead of %EFache2001-03-211-1/+5
|
* mdoc(7) police: fixed broken references.ru2001-01-161-1/+0
|
* mdoc(7) police: fix the weird construct.ru2001-01-151-2/+8
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Use %EF instead of hardcoded order for each countryache1999-11-301-41/+37
|
* use %OB for months namesache1999-09-121-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-2/+3
|
* Due to the switch form Julian to Gregorian calender,helbig1999-03-271-9/+14
| | | | | | even a whole month might be missing. This caused a bug for the LN -calender, whose switch was on Dec 12, 9999.
* fix ncal.1 grammarphk1998-04-261-5/+6
| | | | | | PR: 6394 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
OpenPOWER on IntegriCloud