(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 29 Nov 2020, 09:35
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
cal command alternatives
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 4 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
torm


Joined: 07 Mar 2015
Posts: 186

PostPosted: Thu 02 Jul 2020, 11:45    Post subject:  

Modified a little the old pmonth_p program.
Also renamed it to tell the difference.

Summary.
In a way, sting ver.01 is not oriented at regular users,
while it could be useful for scripters - to avoid complicated
logic in GUI apps that should follow locale specific calendar
layout. Well, in GTK2 this may or not matter - as there is built-in and
almost fullfeatured widget for that purpose, other toolkits are not
that lucky in that respect.
Simplest use would be as input for Conky, GKrellm2, etc.

Features.
Automated locale support, week start day detection.
Abbreviated day labels with dual or single letter.
Numerical commandline arguments for current date marks,
and also for year and month selection - from 1800 to 9999.
Current date marks can also be turned off or selected from
seven different built-in options.
Month numerical value with or without leading zero.
Some error checking on input to avoid segfaults, etc.

Build.
No special dependencies, regular
make
make install
Expected build size is around 10 KB stripped.

License.
Public Domain. Feel free to relicense as needed.

Development.
Some of the code is still hacky and untested.
Could be extended with more "invisible" date marks
to support different scripts or outputs, etc.
Open for suggestions and fixes.

And a big fat disclaimer:
Note that sting ver.01 is a commandline program,
so likely there will be nothing happening when you doubleclick
on it with the mouse Wink
Uh, just in case..
sting-01_calendar_C-source.tar.gz
Description  sting calendar C-source version 01
gz

 Download 
Filename  sting-01_calendar_C-source.tar.gz 
Filesize  4.4 KB 
Downloaded  96 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0245s ][ Queries: 12 (0.0034s) ][ GZIP on ]