home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / ZCPR33 / S-Z / ZCOLUMNS.LBR / FOREVERZ.2Z7 / FOREVERZ.287
Text File  |  2000-06-30  |  10KB  |  192 lines

  1.                             FOREVER Z
  2.  
  3. Z-System column #1 appearing in Morrow Owners Review,áì
  4. Febrary/March 1987
  5.  
  6. (c) 1987 Rick Charnes, all rights reserved
  7.  
  8.      I'd like to dedicate this first column to the large numbersáì
  9. of Morrow owners who have ordered the special bootable Z-Systemáì
  10. disk.  The response has been very gratifying, and I hope here toáì
  11. offer tips, hints, and general "Z" miscellanea to all youáì
  12. intrepid explorers embarking on your cosmic adventure through theáì
  13. Z-System skies.  I can't guarantee that you'll be the same personáì
  14. when you return, but if I can just help with the navigation aáì
  15. bit...
  16.  
  17.      I'd like to cover two topics for this first column, as theyáì
  18. will likely be the most useful and enjoyable programs you have:áì
  19. aliases and shells.
  20.  
  21.      Now first, shells.
  22.  
  23.      There are three of these shell utilities on the Morrow diskáì
  24. - VFILER, VMENU, and MENU.  All users of Z use one or more ofáì
  25. these daily.  They are indispensable and quite extraordinary.
  26.  
  27.      What is a shell?  In a way, you could say it's a secondaryáì
  28. operating system.  When you run a program that's a shell, you canáì
  29. then run other programs from it.  These other programs, ratheráì
  30. than returning to your operating system prompt upon exit returnáì
  31. instead to your shell utility.
  32.  
  33.      Shells exhibit one of the most intriguing aspects of Z-áì
  34. System, the way all its disparate parts are related to each otheráì
  35. in a thousand subtle, and generally to the user unnoticed, ways. áì
  36. Z is unique among operating systems of which I'm aware in havingáì
  37. such a large number of utilities that exist in this dynamic andáì
  38. two-way relationship to it.
  39.  
  40.      You'll often hear the word "utility" bandied about in "Z"áì
  41. literature, and here it has a quite specific meaning.  You see,áì
  42. these programs are sort of lonely by themselves.  In order foráì
  43. them to run at all, they first have to be given the "imprint" ofáì
  44. the operating system.  Dozens of tiny little messages areáì
  45. constantly being sent back and forth between the utilities andáì
  46. the operating system.  General information is shared about youráì
  47. "system environment," as well as information specific to eacháì
  48. program/operating system interaction.  It's somewhat likeáì
  49. schoolchildren passing notes to each other in class while no oneáì
  50. else sees it going on - that's the kind of information thatáì
  51. really makes the world go round, and Z-System run.
  52.  
  53.      The most useful shell for everyday use, and one which youáì
  54. will begin using from the first day you boot up, is VFILER.  Ifáì
  55. you can imagine NSWEEP, itself an extraordinary program, taken toáì
  56. the 100th power, you will begin to have some idea of what it is. áì
  57. Perhaps the thing you might want to do with that magical momentáì
  58. when you've got Z-System installed for the very first time is toáì
  59. just type V-F-I-L-E-R, carriage return, and stand back.
  60.  
  61.      The first thing you'll notice is that your files areáì
  62. displayed in five columns, unlike NSWEEP which gives you one. áì
  63. This way you can generally see the contents of an entire disk ináì
  64. one screen.  You'll notice many of the familiar regular andáì
  65. "mass" operations of NSWEEP - copy, rename, delete, etc.  But youáì
  66. have much more.  You have the ability to "move" files from oneáì
  67. disk/directory to another.  Files are copied to the new area,áì
  68. then the old ones deleted.  The feature, however, that makesáì
  69. VFILER and the other shells shine are their menu functions, as Iáì
  70. mentioned in my article last issue.  Any kind of operation can beáì
  71. one from these menus, and in fact for a challenge I sometimes seeáì
  72. if I can run my entire computer session from VFILER.  It can beáì
  73. done, and the process is most educational.  You can write theseáì
  74. menus yourself or start off with the ready-made ones availableáì
  75. from Z-Nodes in the file DEMO.LBR.
  76.  
  77.      I have to warn you, though: if you start enjoying yourself,áì
  78. you'll find yourself spending half your time "putting theáì
  79. finishing touches on" your menus instead of doing what you setáì
  80. out to do...
  81.  
  82.      With VFILER you can write 36 different command lines thatáì
  83. can be run either by pressing any of the 10 number keys alone, oráì
  84. by first pressing your escape key then any of the letters. áì
  85. Remember the concept of a "pointer file."  This means that youráì
  86. command line will act upon whichever file VFILER's friendlyáì
  87. "pointer" (see it there?) is pointing to.  You reference thisáì
  88. file in your command line with "%f" for the entire file, "%n" foráì
  89. the filename, and "%t" for the filetype.
  90.  
  91.      Here's a sample command line I use for opening up andáì
  92. inspecting the contents of an .LBR file.  Remember, you'reáì
  93. generally allowed 200 characters in your command line, which isáì
  94. about two and a half screen-widths.  Think of what you can doáì
  95. with that!  For the purposes of this article, of course, I canáì
  96. only show it on 2 separate lines, but when you type it in youáì
  97. enter it all on a single line.  There's a Z-System tradition toáì
  98. display long lines in print form by separating them with ">>" andáì
  99. that's what I've done here.  I invoke this "macro" (command line)áì
  100. with "N", since it uses NULU.  Individual commands are alwaysáì
  101. separated with a semicolon:
  102.  
  103. N if %t=lbr;echo ^[G4 OPENING UP %F AS A LIBRARY...^[G0      >>
  104. sak /p4;nulu -o %n -f;else;echo file is not a library;fi
  105.  
  106.      To analyze: The initial "N" indicates the character thatáì
  107. will invoke it from VFILER.  You actually will be typing <ESC>,áì
  108. which is the lead-in character, then "N".  Then VFILER checks theáì
  109. filetype with the "IF" command to make sure it is indeed aáì
  110. library.  If so, it goes to the next command, which "echoes" theáì
  111. sequence "<ESC>G4" to my terminal.  If you read my column lastáì
  112. issue you know how much I like reverse video, which this enables. áì
  113. The text message tells me that it's opening the file up,áì
  114. appropriate substituting the library name for "%F" in the echoedáì
  115. message.  Then "<ESC>G0", which appears here and on your screenáì
  116. as "^[G0", turns off the reverse video.
  117.  
  118.      Because it looks so nice in reverse I like this attractiveáì
  119. message to remain on the screen for a few seconds, so the 'SAKáì
  120. /P4' tells the program SAK to pause operations for four seconds. áì
  121. Then NULU awakens and opens up the file, substituting its nameáì
  122. for '%N'.  If the file is not a library (sometimes you'll hit "N"áì
  123. by mistake, I assure you!), the 'ELSE' command takes over andáì
  124. we're echoed a message to that effect.  The 'FI' command is theáì
  125. equivalent of 'ENDIF' and ends the 'IF' interaction.
  126.  
  127.      VFILER is an extraordinary program and I'm quite sure you'lláì
  128. find it to be one of the most treasured friends in your arsenaláì
  129. of Z tools.
  130.  
  131.      The other two shell utilities are MENU and VMENU.  Theáì
  132. difference among this trio is interesting.  VFILER shows you aáì
  133. screen's worth of files, or by hitting the "#" key the menu, butáì
  134. not both at the same time.  MENU is on the other extreme.  Youáì
  135. never see your files, but you have much more room for descriptiveáì
  136. material of your menu.  Such beautiful displays are possible!  Ináì
  137. my word processing menu for MENU.COM I am able to edit theáì
  138. pointer file with Newword, edit it with Wordstar, correct it witháì
  139. Correct-It, print it with my print spooler, soften it witháì
  140. HRDSFT, filter it with FILTW.COM, or count the number of words ináì
  141. it --- each with a single keystroke.
  142.  
  143.      VMENU is right in between the two and is lovely in aáì
  144. different way - the top half of your screen fills with files andáì
  145. the bottom half with your menus.  Yes, that's menus -- plural;áì
  146. 255 menus are possible in both VMENU and MENU!  You move from ì
  147. menu to menu, and list of files to the next, with a singleáì
  148. keystroke.   Ah, what infinite variety of forms in this Z world!
  149.  
  150.      You'll find uses for all three of these utilities, and willáì
  151. enjoy learning when you want to take advantage of the specialáì
  152. features of each.
  153.  
  154.      The next feature I'd like to quickly cover is the alias.  Anáì
  155. alias is essentially a submit file wrapped up into a single .COMáì
  156. file package.   You'll probably spend hours dreaming up favoriteáì
  157. combinations of commands you want to stuff into one, so I'll onlyáì
  158. tell you one of my simplest and most favorite.  I've alwaysáì
  159. disliked CP/M's reverse "statement formation logic," as in
  160.  
  161.                PIP NEWFILE=OLDFILE
  162.  
  163. So I've taken Z-System's resident copying command, CP, and madeáì
  164. myself a nice MS-DOS style copy program called appropriatelyáì
  165. enough, COPY.COM.  To wit:
  166.  
  167.                     CP $2=$1
  168.  
  169. Now, when I want to copy LOVELTR.TXT to drive B0:LETTERS>áì
  170. (remember, we can give names to our directories in Z-System) Iáì
  171. can type
  172.  
  173.                COPY LOVELTR.TXT LETTERS:
  174.  
  175. Gee -- makes me feel like I have a IBM PC...
  176.  
  177.      Again, your only thing to watch for is that 200 characteráì
  178. buffer, so you'll enjoy learning how to put the most in thereáì
  179. without hitting that magic upper limit.
  180.  
  181.           I hope you all are having a excellent time with Z-áì
  182. System.  Don't forget to log on to the Z-Node nearest you for theáì
  183. latest in the large number of excellent public domain utilitiesáì
  184. available.  This grand adventure is just beginning.
  185.  
  186.      Next time I'll cover, among other things, an amazing programáì
  187. called HSH that will actually let you recall and edit previouslyáì
  188. issued command lines as well as edit the one which you'reáì
  189. currently writing.
  190.  
  191.      Z you next time...
  192.