home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / s / secrtary.lzh / USERMAN3.TXT < prev    next >
Encoding:
Text File  |  1993-03-31  |  14.5 KB  |  4 lines

  1. 1000#COMMENT THIS IS USERMAN3
  2. 1020\
  3. %1040<SECTION II -- REFERENCE MANUAL
  4. 1045 
  5. 1046<COMMANDS
  6. 1047 
  7. 1060 
  8. >1080[(Note to users:  This section provides a summary of the
  9. >1100commands we have explained throughout this document.  It
  10. =1120uses sutstitute words that programmers call PARAMETERS.
  11. ;1140The parameters are ¬& to be taken literally.  They
  12. ?1160should be replaced by real values and words that apply to
  13. <1180the work that you are doing.  Each paragraph explaines
  14. :1200what kinds of parameters the command is expecting.)]
  15. 1220 
  16. 1240  
  17. -1260APPEND FILENAME(,OPTIONAL DRIVE NUMBER)
  18. 1280>5
  19. @1300[This command will load a file named "FILENAME" from disk.
  20. :1320The optional disk drive number is used when the file
  21. 11340resides on a disk drive other than drive 1.
  22. 51360The FREE command will automatically be executed
  23. D1380to show the amount of storage used.  The file will be APPENDed
  24. A1400to the end of the current file in memory.  The line numbers
  25. =1420of the APPENDed file do not have to follow those of the
  26. <1440existing file, but a RENUMBER will have to be done to 
  27. %1460edit the file correctly later.]
  28. 1480>
  29. #1500AUTO LN1(,OPTIONAL INCREMENT)
  30. 1520>5
  31. @1540[Automatic line numbers will be generated until a carriage
  32. )1560return is entered without any text.
  33. >1580LN1 is the starting line number.  The increment for each
  34. C1600succeeding line is optional and will default to 5 if missing.
  35. ?1620Caution! If it generates a line number for a line already
  36. ?1640in the file, the line in the file will be replaced.  This
  37. =1660command is terminated when no text is added to the line
  38. ;1680and a null line is entered, or control-C is entered.]
  39. 1700>
  40. 1720BLOAD BASIC-PROGRAM-NAME
  41. 1740>5
  42. B1760[This command will load a North Star BASIC program from disk
  43. K1780while converting it to SECRETARY format and place it in the data area
  44. N1800to be edited with SECRETARY.  The line numbers in the program should not
  45. 1820exceed 9999.]
  46. 1840>
  47. 1860BSAVE BASIC-PROGRAM-NAME
  48. 1880>5
  49. N1900[This command will take a SECRETARY formatted file in memory, convert it
  50. M1920to North Star BASIC format, and write it to disk in BASIC-PROGRAM-NAME.
  51. P1940Be sure that the disk file is already created, it is a type 2 file, and it
  52. M1960is large enough to hold any changes that you may have added.  Since the
  53. N1980conversion requires scanning a large token table, the program may take a
  54. -2000minute or two to perform this command.]
  55. 2020>
  56. 2040\
  57. 2060CALL ADDR1 HEX1
  58. 2080>5
  59. F2100[This command will allow the user to process a print line during
  60. H2120PRINT command execution before it is passed to the output routine.
  61. %2140This command could be used for 
  62. A2160justifying for special printers such as QUME.  ADDR1 is the
  63. K2180hexidecimal address of the user's routine which will be CALLed.  HEX1
  64. K2200is the hexidecimal value, which if it appears in the line, will cause
  65. H2220the user's routine to be executed.  If all lines are to be passed,
  66. J2240HEX1 should be 0D.  If no lines are to be passed, HEX1 should be 00.
  67. H2260When the user's routine is called, HL contains the address of the 
  68. A2280print line buffer.  The line ends with 0D.  When the user's
  69. K2300routine returns, DE should contain the address of the new print line.
  70. E2320Registers B, C, and A need not be saved.  A sample test routine
  71. .2340is contained within SECRETARY at 2D33H.]
  72. 2360>
  73. 2380CHAIN FILENAME
  74. 2400>5
  75. G2420[This command will load and automatically begin printing the file
  76. G2440named FILENAME.  It is useful to imbed this command at the end of
  77. Q2460a data file to load and print files continuously as if they were one file.]
  78. 2480>
  79. 2500CHNG TEXT1^TEXT2
  80.     2520>5,
  81. 32540[This command will scan the data area for the
  82. D2560string TEXT1, replace it with the string TEXT2, print the line
  83. E2580and wait for a reply.  The only replies accepted are a carriage
  84. @2600return to accept the changed line and replace that line in
  85. =2620the file, control-A to not replace the changed line, or
  86. B2640control-C to cancel the command.  The  up-arrow is required,
  87. B2660but if no data follows the arrow, optional TEXT2, the string
  88. >2680TEXT1 will be deleted.  The entire file will be scanned 
  89. @2700for all occurrences of the string TEXT1.  TEXT1 should not
  90. 2720be a substring of TEXT2.]
  91. 2740>
  92. 2760CHALL TEXT1^TEXT2
  93. 2780>5
  94. B2800[This command will replace TEXT1 with TEXT2 similar to CHNG,
  95. H2820but will not print the line and wait for a reply.  All occurrences
  96. :2840of TEXT1 will be changed automatically in the file.]
  97. 2860>
  98. 2880CONFIGURE 
  99.     2900>5,
  100. F2920[This command initiates the series of questions which customizes
  101. F2940the program for your system.  For a list of the questions asked,
  102. 2960see Section 1 Part 1.]
  103. 2980>
  104. 3000COPY LN1,LN2,LN3
  105. 3020>5
  106. B3040[Copy the text lines starting with LN1 thru LN2.  The copied
  107. >3060line numbers will begin with line number LN3 and will be
  108. 3080incremented by 1.]
  109. 3100>
  110. 3120DELETE LN1(,optional LN2)
  111. 3140DELT LN1(,optional LN2)
  112. 3160>5
  113. F3180[Delete line LN1. If LN2 is present, delete lines LN1 thru LN2.]
  114. 3200>
  115. 3220DESTROY FILENAME
  116. 3240>5
  117. E3260[This command will delete the file named FILENAME form the disk
  118. 3280directory.]
  119. 3300>
  120. '3320DIRECTORY (OPTIONAL DRIVE NUMBER)
  121.     3340>5,
  122. A3360[This  causes DOS to list the disk directory.  If the drive
  123. 83380number is not specified, drive 1 will be assumed.]
  124. 3400>
  125. 3420\
  126. 3440DUMP ADDR1,ADDR2
  127. 3460>5
  128. =3480[This command is not of much value to the average user,
  129. A3500but it is included here for diagnostic purposes and for the
  130. 13520more technical user.  DUMP will display the
  131. 23540contents of memory in hexidecimal and ASCII.
  132. 83560ADDR1 is the beginning memory address and ADDR2 is
  133. Q3580the ending memory address to display.  The unit number for the dump will be
  134. J3600requested and a 132 character print line is required.  The data area
  135. >3620begins around 603BH.  The addresses are in hexidecimal.]
  136. 3640>
  137. 3660EDIT LN1
  138. 3680>5
  139. E3700[Edit line number LN1 according to specific control characters.
  140. @3720See the section on "EDITING A LINE OF TEXT" for a complete
  141. -3740description of the control characters.]
  142. 3760>
  143. 3780EXPAND
  144. 3800>5
  145. K3820[The BLOAD, BSAVE, and CONFIGURE commands have been put at the end of
  146. P3840SECRETARY.  By entering the command EXPAND, you can destroy these commands
  147. M3860and expand the data area by about 2K.  &CAUTION.  Do not save a copy of
  148. O3880the program after entering EXPAND or you will permanently lose the BSAVE,
  149. O3900BLOAD, and CONFIGURE commands.  BE SURE TO SAVE ANY TEXT IN THE DATA AREA
  150. N3920BEFORE ENTERING EXPAND.  ANY TEXT IN THE DATA AREA AFTER ENTERING EXPAND
  151. "3940WILL BE PERMANENTLY LOST.& ]
  152. 3960>
  153. 3980FIND TEXT1
  154. 4000>5
  155. E4020[This command will scan the entire data area and search for any
  156. C4040occurrences of the string TEXT1.  The character string begins
  157. >4060with the first non-blank character following the command
  158. ?4080"FIND" and ends with the character preceding the carriage
  159. A4100return.  All lines containing the text will be printed, but
  160. B4120the file will not be changed.  This command can be cancelled
  161. )4140at any time by entering control-C.]
  162. 4160>
  163. 4180FREE
  164. 4200>5
  165. *4220[This command will cause the message
  166. >4240USED: N1  AVAILABLE: N2  LAST LINE: N3  BLOCKS: N4 to be
  167. A4260printed.  N1 is the number of characters in use in the data
  168. @4280area (in decimal).  N2 is the number of characters free or
  169. A4300remaining unused in the data area (in decimal).  N3 is the 
  170. =4320last line number in the data area.  N4 is the number of
  171. 54340blocks required to save this file on the disk.]
  172. 4360>
  173. 4380HELP
  174. 4400>5
  175. >4420[This command will list the first four characters of all
  176. ?4440of the valid commands.  This is done automatically if you
  177.  4460enter an invalid command.]
  178. 4480>
  179.  
  180. 4500JUSTIFY
  181. 4520JUSTIFY ON
  182. 4540JUSTIFY OFF
  183. 4560>5
  184. ?4580[JUSTIFY with nothing following, or with an illegal value
  185. =4600following, will print the status of the justify switch.
  186. 24620JUSTIFY ON will set the justify switch on.  
  187. ?4640JUSTIFY OFF will set the justify switch off.  The justify
  188. B4660switch determines whether or not the text will be justified 
  189. ;4680in addition to line filled during the PRINT command.]
  190. 4700>
  191. 4720\
  192.  
  193. 4740LINE P1
  194. 4760>5
  195. B4780[This command specifies the length of the output line during
  196. A4800the PRINT command.  The initial value is 70 and the maximum
  197. ;4820length, the value of P1, is 132 characters per line.]
  198. 4840>
  199. (4860LIST (OPTIONAL LN1)(,OPTIONAL LN2)
  200. 4880>5
  201. @4900[This command will cause the entire data area to be listed
  202. E4920with line numbers.  If the optional line number LN1 is entered,
  203. B4940the listing will begin at that line.  If LN2 is entered, the
  204. 94960listing will end with line LN2.  The listing can be
  205. >4980cancelled with a control-C.  The unit and space features
  206. <5000are used with this command (see their descriptions for
  207. 5020details).]
  208. 5040>
  209. +5060LOAD FILENAME(,OPTIONAL DRIVE NUMBER)
  210. 5080>5
  211. B5100[This command will load a file named "FILENAME" from disk.  
  212. :5120The optional disk drive number is used when the file
  213. 15140resides on a disk drive other than drive 1.
  214. 55160The FREE command will automatically be executed
  215. *5180to show the amount of storage used.]
  216. 5200>
  217. 5220MARGIN P1,P2
  218. 5240>5
  219. ;5260[This command sets the beginning and ending positions
  220. @5280of the text on the page.  P1 is the starting column of the
  221. 15300first character and P2 is the ending column
  222. )5320of the last character on the line.]
  223. 5340>
  224. ,5360MERGE FILENAME(,OPTIONAL DRIVE NUMBER)
  225.     5380>5,
  226. ;5400[This command will load the BASIC data file FILENAME,
  227. C5420read the first sector, and prepare to merge the data into the
  228. 5440text file.]
  229. 5460>
  230. 5480MOVE LN1,LN2,LN3
  231. 5500>5
  232. A5520[This command is similar to the COPY command.  Line numbers
  233. B5540LN1 thru LN2 will be copied beginning at LN3 and incremented
  234. =5560by 1.  Then line numbers LN1 thru LN2 will be deleted.]
  235. 5580>
  236. C5600NSAVE FILENAME(,OPTIONAL DRIVE NUMBER) (OPTIONAL # OF BLOCKS)
  237. 5620>5
  238. >5640[This command will save a file named "FILENAME" on disk.
  239. :5660The optional disk drive number is used when the file
  240. 15680resides on a disk drive other than drive 1.
  241. <5700The file size should not be greater than the data area
  242. ?5720or SECRETARY may not be able to load the file back later.
  243. ;5740This command both creates a file and saves the data.]
  244. 5760>
  245.  
  246. 5780NULL P1
  247. 5800>5
  248. =5820[P1 is the number of null characters (00H) that will be
  249. 05840generated following each carriage return.]
  250. 5860>
  251. 5880OFFSET P1
  252. 5900>5
  253. C5920[P1 is the number of characters that the entire page is moved
  254. 5940to the right.]
  255. 5960>
  256. '5980OPEN LN1,LN2(,OPTIONAL INCREMENT)
  257. 6000>5
  258. >6020[This command "opens up" line numbers so that additional
  259. @6040lines can be added without destroying lines already there.
  260. B6060It effectively renumbers all of the lines beginning with LN1
  261. H6080and using LN2 as the first line number.  If the optional increment
  262. D6100is present, it will be used to increment each succeeding line,
  263. 46120otherwise each line will be incremented by 1.]
  264. 6140>
  265. 6160\
  266. 6180PAGE P1,P2,P3
  267. 6200>5
  268. D6220[This command defines a page for the PRINT command.  P1 is the
  269. ;6240maximum lines per page and defaults to 66.  P2 is the
  270. :6260number of printed lines per page and defaults to 54.
  271. B6280P3 is the line number of the first line of text and defaults
  272. 6300to 7.]
  273. 6320>
  274.  
  275. 6340PNUM P1
  276. 6360>5
  277. J6380[P1 is the starting page number of the printed text.  If P1 is zero,
  278. L6400the pages will be  numbered starting with page 1 but the page numbers 
  279. G6420and title will be first printed on page 2.  If P1 is 1, the pages
  280. E6440will be numbered starting with page 1, and the page numbers and
  281. F6460title will be first printed on page 1.  If P1 is greater than 1,
  282. <6480P1 will be the page number used on the first page etc.
  283. 76500If P1 is greater than 250 and less than 255, omit
  284. 6520all page numbers.]
  285. 6540>
  286. 6560PRINT (OPTIONAL LN1)
  287. 6580>5
  288. @6600[This command causes the data area to be printed using the
  289. ?6620word processing features and eliminating line numbers and
  290. A6640control characters.  Titles, page numbers, page formatting,
  291. A6660line fill, and justification are handled with this command.
  292. >6680See the section on "WORD PROCESSING FEATURES" for a full
  293. H6700description.  If LN1 is present, printing will begin at line LN1.]
  294. 6720>
  295. 6740QUIT
  296. 86760    This terminates the editor and returns to DOS.
  297.  
  298. 6780RECOVER
  299. 6800>5
  300. D6820[Try to salvage the data area destroyed by SCRATCH, CONFIGURE,
  301. 16840JP 2D00, or disk or memory hardware error.]
  302. 6860>
  303. '6880RENUMBER LN1(,OPTIONAL INCREMENT)
  304. 6900>5
  305. D6920[Renumber the data area starting with line number LN1.  If the
  306. B6940optional increment is present, each line will be incremented
  307. D6960by that value; otherwise, each line will be incremented by 5.]
  308. 6980>
  309. 7000REPEAT P1
  310. 7020>5
  311. C7040[During the PRINT command operation, print the entire text P1
  312. ;7060times.  This command is used to get multiple copies.]
  313. 7080>
  314. +7100SAVE FILENAME(,OPTIONAL DRIVE NUMBER)
  315. 7120>5
  316. 57140[This command will save a file named "FILENAME"
  317. "7160on an existing file on disk.
  318. :7180The optional disk drive number is used when the file
  319. 17200resides on a disk drive other than drive 1.
  320. >7220Should the text now be larger than will fit in the file,
  321. :7240a "FILE TOO SMALL" message will appear.  The easiest
  322. <7260procedure is to NSAVE the text under a new file name.]
  323. 7280>
  324.  
  325. 7300SCRATCH
  326. 7320>5
  327. C7340[Delete the existing text and reset the system in preparation
  328. 0to enter a new text.]
  329. 7380>
  330. 7400\
  331. 7420SPACE P1
  332. 7440>5
  333. C7460[Set the line spacing for the LIST and PRINT command.  Single
  334. <7480space if P1 is zero or one; otherwise space P1 lines.]
  335. 7500>
  336. 0TABSET N1,N2,N3...N10
  337. 7540>5
  338. M7560[This command sets from 1 to 10 tabs where N1... is the column location
  339. C7580of each tab.  The tabs must be in ascending order and must be
  340. D7600separated by a comma.  Use of this command supercedes any tabs
  341. E7620previously set.  The tabs can be cleared by entering TABSET 0.]
  342. 7640>
  343. 7660TITLE TEXT1
  344. 7680>5
  345. "7700[Set the title to be printed
  346. <7720during the print operation.  The title begins with the
  347. D7740first non-blank character following the command TITLE and ends
  348. ,7760with the carriage return.  The maximum
  349. ,7780length of the title is 50 characters.]
  350. 7800>
  351.  
  352. 7820UNIT P1
  353. 7840>5
  354. ?7860[Since many installations have a printer in addition to a
  355. ?7880terminal, the LIST and PRINT commands may need the output
  356. A7900directed to the faster printer.  The UNIT command sets up a
  357. @7920unit number P1 which will be placed in the accumulator and
  358. D7940passed to the DOS output routine for routing the character to 
  359. B7960the proper printer.  If the unit is zero, the LIST and PRINT
  360. @7980commands will come on the CRT and display only a few lines
  361. :8000at a time depending on the screen size.  If the unit
  362. 18020is nonzero, the LIST or PRINT will be typed
  363. 8040uninterrupted.]
  364. 8060>
  365. 8080  
  366. 8100#CHAIN USERMAN4
  367.