cal command alternatives
Posted: Mon 10 Oct 2016, 10:31
Edited topic.
Defaults.
____
Currently most Puppys are shipped with BusyBox version of "cal" command,
that unfortunately fails to detect the correct week-start-day for most european
users. There is also no commandline switch to fix that.
Note that BusyBox is a multi-call binary, and "cal" command is just a symlink
to it by default.
Alternatives.
____
Standard util-linux cal command is provided in util-linux package and
makes around 42k size binary ( stripped ) .
Note that cal as a stand-alone program is not listed in PPM, and util-linux package
may appear already installed.
util-linux has somewhat unusual compile method.
Official source for util-linux package: https://mirrors.edge.kernel.org/pub/lin ... nux/v2.33/
____
ccal_4.0 is stated as "any OS" alternative to cal ( MSDOS/FreeBSD/Unix/OS2/.. ).
It has some extras like colored terminal output and appointments.
On the other hand, it is no longer developed ( since 2002? ) and may have some
errors for european locales ( broken year view, etc. )
It may be listed in PPM ( Puppy Package Manager )
____
libcalendar-simple-perl_1.21-1
is configurable and small perl script, that unfortunately
depends on another perl module provided ( mostly ) inside devx.sfs
____
There are some bash scripts that try to mimic the cal command, for example:
http://unix.stackexchange.com/questions ... cal-or-cal
..while those may or not work as expected.
GUI alternatives.
____
gtk2 calendar-widget is a bit heavy, while limited in design
and has little use for external apps as input source.
For example see here: http://murga-linux.com/puppy/viewtopic.php?t=112293
____
gtk1.2 calendar-widget may have problems with locale support ( depending on system )
and needs extra dependencies ( like: gtk1.2 ? ) to compile.
For example of static precompiled bin see here: http://murga-linux.com/puppy/viewtopic. ... 9&start=60
____
xcalendar-4.0 is built on the old X Toolkit and the Athena or Motif
widgets. It may have problems with X11 fonts ( locale specific ) and poor visual
appearance. Also there is no automated locale support by default.
Other alternatives.
____
Programs with large size or multiple external dependencies are not listed here.
Practical use for cal command.
____
Output can be piped to different GUI apps like Conky, GKrellm2, and alike.
Or used in gtkdialog apps as direct or edited input for calendar.
Or just.. a fix for broken command?
Summary.
____
The "usual" util-linux cal command is the most correct and complete.
Then again, for some users tricky to install or compile.
It can be the best solution for those who expect full features of cal command
for personal use, while one may need all different variations of precompiled
executable file at hand ( 32/64 deb/slack/whatnot.. ) if it is shared as dependency or
direct input for some other program that is shared as pet package.
NB!
If You know how to compile util-linux cal as stand-alone program ( with: make, make install.. )
outside util-linux package, then please
share it here and include a stand-alone source.
Note..
One may download util-linux without installing it - from PPM, then extract cal from it.
-
ccal_4.0 is licensed as Public Domain package in readme.cal file, and there is MIT-style license in
cal.c file top, hmm... ?
Fuzzy license, help me if you can. For now I'll keep it as it is.
Not perfect, not lightweight, while it should compile on most puppy versions without problems.
I think I managed to trim it down to very basic one-month-view calendar with less than 10kb in size.
Fixed some issues, added automated locale support, etc.
It used to be posted here under name of "kale" before, as source code tar.gz.
That was a little bit funny name in some languages, so I think "pmonth" may fit better.
Defaults.
____
Currently most Puppys are shipped with BusyBox version of "cal" command,
that unfortunately fails to detect the correct week-start-day for most european
users. There is also no commandline switch to fix that.
Note that BusyBox is a multi-call binary, and "cal" command is just a symlink
to it by default.
Alternatives.
____
Standard util-linux cal command is provided in util-linux package and
makes around 42k size binary ( stripped ) .
Note that cal as a stand-alone program is not listed in PPM, and util-linux package
may appear already installed.
util-linux has somewhat unusual compile method.
Official source for util-linux package: https://mirrors.edge.kernel.org/pub/lin ... nux/v2.33/
____
ccal_4.0 is stated as "any OS" alternative to cal ( MSDOS/FreeBSD/Unix/OS2/.. ).
It has some extras like colored terminal output and appointments.
On the other hand, it is no longer developed ( since 2002? ) and may have some
errors for european locales ( broken year view, etc. )
It may be listed in PPM ( Puppy Package Manager )
____
libcalendar-simple-perl_1.21-1
is configurable and small perl script, that unfortunately
depends on another perl module provided ( mostly ) inside devx.sfs
____
There are some bash scripts that try to mimic the cal command, for example:
http://unix.stackexchange.com/questions ... cal-or-cal
..while those may or not work as expected.
GUI alternatives.
____
gtk2 calendar-widget is a bit heavy, while limited in design
and has little use for external apps as input source.
For example see here: http://murga-linux.com/puppy/viewtopic.php?t=112293
____
gtk1.2 calendar-widget may have problems with locale support ( depending on system )
and needs extra dependencies ( like: gtk1.2 ? ) to compile.
For example of static precompiled bin see here: http://murga-linux.com/puppy/viewtopic. ... 9&start=60
____
xcalendar-4.0 is built on the old X Toolkit and the Athena or Motif
widgets. It may have problems with X11 fonts ( locale specific ) and poor visual
appearance. Also there is no automated locale support by default.
Other alternatives.
____
Programs with large size or multiple external dependencies are not listed here.
Practical use for cal command.
____
Output can be piped to different GUI apps like Conky, GKrellm2, and alike.
Or used in gtkdialog apps as direct or edited input for calendar.
Or just.. a fix for broken command?
Summary.
____
The "usual" util-linux cal command is the most correct and complete.
Then again, for some users tricky to install or compile.
It can be the best solution for those who expect full features of cal command
for personal use, while one may need all different variations of precompiled
executable file at hand ( 32/64 deb/slack/whatnot.. ) if it is shared as dependency or
direct input for some other program that is shared as pet package.
NB!
If You know how to compile util-linux cal as stand-alone program ( with: make, make install.. )
outside util-linux package, then please
share it here and include a stand-alone source.
Note..
One may download util-linux without installing it - from PPM, then extract cal from it.
-
ccal_4.0 is licensed as Public Domain package in readme.cal file, and there is MIT-style license in
cal.c file top, hmm... ?
Fuzzy license, help me if you can. For now I'll keep it as it is.
Not perfect, not lightweight, while it should compile on most puppy versions without problems.
I think I managed to trim it down to very basic one-month-view calendar with less than 10kb in size.
Fixed some issues, added automated locale support, etc.
It used to be posted here under name of "kale" before, as source code tar.gz.
That was a little bit funny name in some languages, so I think "pmonth" may fit better.