SXCAL(1) — NEWS-OS Programmer’s Manual
NAME
sxcal − NEWS Desk desktop tool, calendar
SYNOPSIS
sxcal [ −toolkitoption ... ]
DESCRIPTION
sxcal program displays a monthly calendar and allows daily scheduling information to be entered. It is a tool that runs on X.
The scheduling information entered is saved in a file called calendar in the user’s home directory. The file calendar is updated when sxcal is exited, at midnight and when a different month is being displayed.
For detailed usage instructions, refer to Vol. 1 of the NEWS Desk User’s Guide in the NEWS-OS manual set.
OPTIONS
In addition to all of the standard X Toolkit command line options, sxcal also accepts the following.
−monday
This option makes a week starts from Monday.
+monday
This option makes a week starts from Sunday.
−sunday
This option makes a week starts from Sunday.
−fn font_name
The font specified using this option is used to display the calendar day and date. The default is fixed.
−fb font_name
The font specified using this option is used to display the portions of the calendar for which scheduling information has been entered. The default is 8x13bold.
RESOURCES
In addition to the resources defined by the widgets used by sxcal, the application itself defines the following.
fileMode (class FileMode)
Specifies the permission mode of the schedule file ($HOME/calendar) in decimal value. For example, if you want to forbid others from reading and writing (i.e. mode 0600 in octal), specify 384. By default, parent process’s umask(2) decides the mode.
mondayFirst (class MondayFirst)
This Boolean value makes a week starts from Monday. Default value is False.
normalFont (class NormalFont)
The specified font is used for the calendar day and date display.
boldFont (class BoldFont)
The specified font is used to display the portions of the calendar for which scheduling information has been entered.
today_string (class TodayString)
Specifies the format for the text string displayed in the today button. Any text string may be entered combination with %Y, %M, %D or %W. In this way the year, month, day and date symbols used by sxcal can be changed.
twoByteNum (class TwoByteNum)
If this resource is set to True, the numerals in the today button text string display will be handled as multi-byte codes.
tlabel0 (class TLabel0)
tlabel1 (class TLabel1)
tlabel2 (class TLabel2)
tlabel3 (class TLabel3)
tlabel4 (class TLabel4)
tlabel5 (class TLabel5)
tlabel6 (class TLabel6)
tlabel7 (class TLabel7)
tlabel8 (class TLabel8)
tlabel9 (class TLabel9)
Specifies the characters (0 − 9) which appear in the numeral portion of the today button text string display.
twklabel0 (class TWkLabel0)
twklabel1 (class TWkLabel1)
twklabel2 (class TWkLabel2)
twklabel3 (class TWkLabel3)
twklabel4 (class TWkLabel4)
twklabel5 (class TWkLabel5)
twklabel6 (class TWkLabel6)
Specifies the characters which appear in the day portion of the today button text string display. Sunday is defined by twklabel0, Monday by twklabel1, and so on through Saturday.
tmnlabel0 (class TMnLabel0)
tmnlabel1 (class TMnLabel1)
tmnlabel2 (class TMnLabel2)
tmnlabel3 (class TMnLabel3)
tmnlabel4 (class TMnLabel4)
tmnlabel5 (class TMnLabel5)
tmnlabel6 (class TMnLabel6)
tmnlabel7 (class TMnLabel7)
tmnlabel8 (class TMnLabel8)
tmnlabel9 (class TMnLabel9)
tmnlabel10 (class TMnLabel10)
tmnlabel11 (class TMnLabel11)
Specifies the characters which appear in the month portion of the today button text string display. January is defined by tmnlabel0, February by tmnlabel1, and so on through December.
wklabel0 (class WkLabel0)
wklabel1 (class WkLabel1)
wklabel2 (class WkLabel2)
wklabel3 (class WkLabel3)
wklabel4 (class WkLabel4)
wklabel5 (class WkLabel5)
wklabel6 (class WkLabel6)
Specifies the text strings to be used for the day labels in the monthly calendar display. Sunday is defined by wklabel0, Monday by wklabel1, and so on through Saturday.
mnlabel0 (class MnLabel0)
mnlabel1 (class MnLabel1)
mnlabel2 (class MnLabel2)
mnlabel3 (class MnLabel3)
mnlabel4 (class MnLabel4)
mnlabel5 (class MnLabel5)
mnlabel6 (class MnLabel6)
mnlabel7 (class MnLabel7)
mnlabel8 (class MnLabel8)
mnlabel9 (class MnLabel9)
mnlabel10 (class MnLabel10)
mnlabel11 (class MnLabel11)
Specifies the text string to be displayed in the month button. January is defined by mnlabel0, February by mnlabel1, and so on through December.
HOLIDAY DIFINES
Holidays are able to be set as sxcal resources. For example, you can set your personal holiday by saving following resources as $HOME/SXcal or $HOME/.Xdefaults.
!------------------------------------------------------------------
! sxcal holiday definition
!
! o All of numeric characters are recognized as holidays.
! All of non numeric characters are recognized as comments.
! You may not include numeric characters in comments.
! o Each holidays must be separated by non numeric characters.
! (ex. space or comma)
! o In case of year specific holiday, first four numeric characters are
! recognized as year and following two characters are recognized
! as day. So it must be six numeric characters.
! o Number of holidays per one month is restricted to 100
! (including year specific holidays).
!
SXcal∗janHolidays: 1:New Year’s Day 199121,199220:Martin Luther King Jr. Day
SXcal∗febHolidays: 12:Lincoln’s Birthday 199113:Ash Wednesday, 199118,199217 Washington’s Birthday
SXcal∗marHolidays: 17:St.Patrick’s Day 199204:Ash Wednesday, 199124:Palm Sunday, 199129:Good Friday, 199130:Passover, 199131:Easter
SXcal∗aprHolidays: 199212:Palm Sunday, 199217:Good Friday, 199218:Passover, 199219:Easter, 199124,199222:Secretaries Day
SXcal∗mayHolidays: 199112,199210:Mother’s Day, 199119:Whitsunday, 199127,199225:Memorial Day
SXcal∗junHolidays: 14:Flag Day 199207:Whitsunday, 199116,199221:Father’s Day
SXcal∗julHolidays: 4:Independence Day
SXcal∗augHolidays:
SXcal∗sepHolidays: 199102,199207:Labor Day, 199109,199228:Rosh Hashana, 199118:Yom Kippur
SXcal∗octHolidays: 199207:Yom Kippur, 199114,199212:Columbus Day
SXcal∗novHolidays: 11:Veterans Day, 199128,199226:Thanksgiving
SXcal∗decHolidays: 25:Christmas 199102,199220:Hanukkah
MULTI LANGUAGE SUPPORT
Japanese (Shift-JIS/EUC), Korean (EUC) and English (ISO 8859-1) are supported.
FILES
$HOME/calendar
/usr/lib/X11/app-defaults/SXcal
/usr/lib/X11/en_US.88591/app-defaults/SXcal
/usr/lib/X11/ja_JP.SJIS/app-defaults/SXcal
/usr/lib/X11/ja_JP.EUC/app-defaults/SXcal
/usr/lib/X11/ko_KR.EUC/app-defaults/SXcal
SEE ALSO
X(1)
NEWS Desk User’s Guide Vol. 1
COPYRIGHT
Copyright (c) 1990, 1991, 1992, 1993 Sony Corporation
NEWS-OSRelease 4.2.1R