home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / util / timofday.lbr / TIMOFDAY.DZC / TIMOFDAY.DOC
Encoding:
Text File  |  1988-11-25  |  4.6 KB  |  94 lines

  1. San Francisco, 25 Nov 1988 <-- this date string courtesy of Rob 
  2. Rick Charnes                   Friefeld's NT.COM, a short ZEX 
  3.                                script put into my STARTUP 
  4.                                sequence, and a VDE macro.  I.e. I 
  5.                                didn't type it in manually.
  6.  
  7.  
  8.                  ARUNZ STARTUP ALIAS TO DISPLAY
  9.                 "TIME OF DAY" MESSAGE INSIDE BOX
  10.                 --------------------------------
  11.  
  12. This requires ARUNZ v0.9M or later, along with either DateStamper 
  13. or ZSDOS, or the AR9NZ80D patch to ARUNZ that Eugene Nolan 
  14. provided for Z80DOS users.
  15.  
  16. This is an insert to put into your ALIAS.CMD, most properly as 
  17. part of your startup alias.  It will display to the screen a 
  18. different "welcome" greeting depending on what part of the day it 
  19. is -- morning, afternoon, evening, or "the wee hours."  (Why is 
  20. it I seem to see so much of the latter message?)  It's a friendly 
  21. greeting for the haggled computer user.  It's nice to know that 
  22. your computer cares.
  23.  
  24. timofday    cls;if gt $dh 17;t m eve;else;if gt $dh 11;t m aft
  25.             else;if gt $dh 05;t m morn;else;t m wee;zif
  26.  
  27. EVE, AFT, MORN and WEE are all separate files containing the 
  28. message.  I like to conserve directory entries (only have 512 per 
  29. disk drive, after all...) and so have put each file into a 
  30. library I call M.LBR for M)essage.  Over the years I've 
  31. accumulated a great number of "message" files that I use to 
  32. display to the screen in various aliases for status reporting, 
  33. help screens, or just generally to prettify my console display.  
  34. I generally insert in these message files various of the codes 
  35. that give me the attractive video attributes of which my Qume 102 
  36. (and many other terminals) is capable.  I keep them inside M.LBR 
  37. and use the enclosed T.COM to type them.  T.COM is a version of 
  38. the ancient TYPEL.COM that I have patched to NOT "interpret" 
  39. control characters (display them as "^[G4" or whatever) but 
  40. to actually enable the particular video attribute that it 
  41. represents.  
  42.  
  43. You can either use the enclosed M.LBR along with T.COM or just 
  44. have the four files as standalones on your disk.  TIMOFDAY.CMD is 
  45. set up for using T.COM and M.LBR; you'll have to modify it 
  46. slightly otherwise.  Be sure to put M.LBR in your root directory 
  47. or else log onto its directory at the start of the alias; T.COM 
  48. will not accept user number or named directory references.
  49.  
  50. M-QUME.LBR is my own version of the files that use the Qume 
  51. graphic characters to draw a beautiful box around the message, so 
  52. if you have a Qume they're yours.  The files I have included in 
  53. M.LBR are for everyone else; I've replaced the Qume graphics box 
  54. characters with the standard non-graphics text line drawing 
  55. characters '|' '-' '\' and '/'.  It's not as pretty but since 
  56. CP/M has no standard for graphics lines that's the best we can 
  57. do.  Extract the files from the library and make them pretty 
  58. using your terminal's video codes and graphics boxes, if you like.
  59.  
  60. I hope this use of ARUNZ's datestamper parameters and the IF GT 
  61. command will give people more great ideas on how to use 
  62. datestamping inside aliases.  Stay tuned for my articles in The 
  63. Computer Journal which really go into some fancy tricks.
  64.  
  65. Practically everything I'm writing these days uses the ARUNZ date 
  66. parameters.  I urge all Z-System users to add some sort of 
  67. datestamping to their systems -- it really makes a difference.  
  68. I've been beta-testing ZSDOS for months now (will be shipping 
  69. very shortly) and it is superb!  Available through Plu*Perfect 
  70. Systems, 410 23rd St., Santa Monica, CA 90402 or Sage 
  71. Microsystems East at 1435 Centre St., Newton, MA 02159.
  72.  
  73. I'd also urge all CP/M users to subscribe to The Computer 
  74. Journal, that rare and important commodity these days -- a 
  75. magazine with numerous in-depth articles dealing with CP/M and 
  76. Z-System.  Jay Sage and Bridger Mitchell are both regular 
  77. columnists; Bruce Morgen did a nice thing last issue and 
  78. hopefully will be a regular, and I'll be starting a regular 
  79. series of articles beginning in the January/Febrary 1989 issue 
  80. which will be in the mail at the end of November.
  81.  
  82. Have fun with TIM-OF-DAY...
  83.  
  84. Rick Charnes
  85.  
  86.                               * * *
  87.  
  88. I'll never stop including the latest version of Steve 
  89. Greenberg's/Bruce Morgen's/Michal Carson's LDIRB.COM in the LBR's 
  90. I release.  I figure for every person who sees the beautiful 
  91. dates and comment fields displayed by this program, there just 
  92. might be one more person converted to DateStamper/ZSDOS.
  93.  
  94.