CALNDR by David Krecklow THE PROGRAM This is a simple calender display utility. I know there are a lot of these around but this is one I've refined several times over the years and which I sometimes attach to of my software. It's easy to move around in, seems accurate for most any month and year I've tried, shows the previous and the next month, and this version looks great in color. SETUP To run the program the following subroutines are needed CALD1.SBR (included) CALD2.SBR (included) CALD3.SBR (included) CALD4.SBR (included) CALD5.SBR (included) NOECHO.SBR (standard) ECHO.SBR (standard) SLEEP.SBR (standard) ODTIM.SBR (standard) TRMCHR.SBR (standard) STRIP.SBR (standard) CALD1-CALD5 should be loaded in user memory and if you don't have the others in system load ODTIM and STRIP in user memory also. (This is only for speed and is not required. A command file called CALNDR.CMD is included as a sample.) RUNNING THE PROGRAM Enter RUN CALNDR or CALNDR A typical screen might look like this : MARCH 1992 APRIL 1992 Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa ---------------------------- ---------------------------- 1 2 3 4 5 6 7 1 2 3 4 8 9 10 11 12 13 14 5 6 7 8 9 10 11 15 16 17 18 19 20 21 12 13 14 15 16 17 18 22 23 24 25 26 27 28 19 20 21 22 23 24 25 29 30 31 26 27 28 29 30 Wednesday, April 8, 1992 01:13:55 PM MAY 1992 UP arrow - previous month Su Mo Tu We Th Fr Sa DOWN arrow - next month ---------------------------- PREV Screen - previous year 1 2 NEXT Screen - next year 3 4 5 6 7 8 9 HOME or CANCL - end 10 11 12 13 14 15 16 RETURN - enter date 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ENTER option > 31 You may move around by using arrow keys, function keys or just the first letter of each command. To enter a specific month and year enter RETURN and the month number and the year as prompted. PRINTING Not listed on the menu is the L or list function. (The P was used first for previous year. Also the PRINT key if your terminal has it and your terminal driver translates it to standard code). Your terminal must have the ability to read the character at the cursor position. The screen image is placed in the file CALD.LST which can be edited or printed. (If you use this and your terminal locks up it probably does not support this function. You may find your keyboard locked and you rjob waiting for input. You may have to reset your terminal to release the keyboard and then kill the job from another terminal or enter 80x23 characters to release the job.) FILES INCLUDED: CALNDR.R13 run file for 1x AMOS CALNDR.R14 run file for 2x AMOS CALNDR.RP run file for alphaBASIC Plus CALNDR.CMD sample command file CALNDR.DOC documentation CALNDR.WRT documentation in alphaWRITE 2.1 CALD1.SBR xcall subroutine CALD2.SBR xcall subroutine CALD3.SBR xcall subroutine CALD4.SBR xcall subroutine CALD5.SBR xcall subroutine OPERATING SYSTEM NOTE: This program has been compiled using all three versions of alphaBASIC. If you are on a 1.x version of AMOS please use CALNDR.R13 by renaming it to CALNDR.RUN. If you are on a 2.x version of AMOS you may use either R13 or the R14 programs. R13 requires that you use ORUN instead of RUN if you are using a version of AMOS prior to 2.2. Version 2.2 automatically uses the correct version of RUN. Last, CALNDR.RP is the alphaBASIC Plus version. BASIC Plus looks for subroutines with the extension XBR instead of SBR. All the subroutines included will work so all you need to do is enter the following line to create subroutines for BASIC Plus COPY *.XBR=CALD?.SBR .