home *** CD-ROM | disk | FTP | other *** search
-
-
- 01-JUL-85 CALNDR.PAS
-
-
- Address any questions to Dave Carey, [70120,112]
-
-
- 1: Description
-
- CALNDR.COM will produce a calendar for any year in the Gregorian
- Calendar. The program will send the output to the screen, a
- printer, or an MSDOS file at the user's option. The output
- format is selectable by the user from five pre-defined formats.
-
- Note that this program will create a calendar for ANY year, even
- though the Gregorian calendar was not adopted until 1582 by the
- Roman Catholic Church, and even later by other authorities. The
- Gregorian Calendar was adopted in the United States (along with
- all the other British colonies) in 1752. Calendars produced for
- years before these times are not, of course, valid for historical
- purposes.
-
-
-
- 2: Operation
-
- CALNDR.COM operates from parameters supplied on the DOS command
- line. Each parameter is processed, in sequence from left to
- right, as supplied on the command line. This sequence can be
- critical to the production of desired output. The next sections
- describe each parameter in more detail.
-
- Parameters must be delimited by spaces, and the parameter
- variables must not contain spaces. The parameter key letters may
- be upper or lower case. Undefined parameters or invalid arguments
- will be rejected with an error message.
-
-
- 2.1: Parameters
-
- 2.1.1: F Param
-
- The Fx option sets the format of the calendar output.
- The option can be 0 thru 4.
-
- F1 generates a calendar that is one month wide by 12
- months long. (33 characters by 120 lines.)
-
- F2 generates a calendar that is two months wide by 6
- months long. (66 charactesr by 60 lines.)
-
- F3 3 x 4. (99 characters by 40 lines.)
-
- F4 4 x 3. (132 characters by 30 lines.)
-
- F0 generates a calendar using block characters. One
- month is printed per page. The page must be at least
- 127 characters wide by 64 lines long.
- With F0 a single month can be selected using the M
- param, or an entire year can be selected using M0. (See
- also, the M Param, next section.
-
-
-
- 2.1.2: M Param
-
- The M param selects the month to be processed by format
- 0. It has no effect on the other formats. M1 thru M12
- select January thru December, M0 selects the entire year
- for output.
-
-
-
- 2.1.3: P Param
-
- The P param sends data to the output device or file.
- The typical use of the P param would be to send the
- characters to select condensed print or some other
- special effect to a printer.
-
- The variable portion of the P param is the data text to
- be sent to the output device or file. Standard letters,
- numbers, and other characters can be specified directly,
- control characters are selected by preceding the desired
- keyboard character with the circumflex '^' character.
- The program will subtract 64 (hex 40) from the binary
- value of the next keyboard character before the
- character is output. The Escape character is specified
- as ^[. Note that the Case (Upper or Lower) of
- alphabetic characters is relevant here. ^A is Hex 01
- (41-40=01), while ^a is Hex 21 (61-40=21).
-
- Note that the Print control information will be sent to
- the last defined Output device/file.
-
- 2.1.4: O Param
-
- The O param defines the output device or file. The
- variable portion of the O param can be any valid MS-DOS
- file or TURBO device name.
-
- Note that the Output file or device must be specified
- prior to output of Print control data using the P param.
-
- If the O param is omitted, the default device is the
- TURBO "OUT:" device (the screen).
-
- 2.1.5: Y param
-
- The Y param defines the year desired, and causes the
- program to immediatly output the selected calendar. A Y
- param with no variable part causes the output of a
- calendar for the previously specified Y or 1985 if no
- prior Y param is present.
-
-
-
- 2.2: Examples
-
- Generate a calendar for January, 1950, in block characters to
- the printer.
- (Note that the printer must be capable of printing at least
- 128 characters per line.)
-
- calndr f0 m1 olst: y1950
-
- Same as above but set condensed print (On the RS LP-V
- Condensed print is set by Escape Cntrl-N) Refer to your
- printer manual for the proper control information for your
- printer.
-
- calndr f0 m1 olst: p^[^N y1950
-
-
- Same as above, but send the output to a disk file called
- MYFILE on the default disk and directory.
-
- calndr f0 m1 omyfile y1950
-
- Same as above, but do both January and February.
-
- calndr f0 omyfile m1 y1950 m2 y
-
- Generate a calendar for the complete year 1985, printed on a
- single page (66 characters by 60 lines).
-
- calndr f2 olst: y1985
-
- Same format as before, except create two calendars 1984 and
- 1985.
-
- calndr f2 olst: y1984 y1985
-
-
-
-
-
-
-