LISTT -- File utility program for printers -- 11/26/83 Irvin M. Hoff Los Altos Hills, CA 94022 "LISTT" is a printer utility program that lists any requested file on your printer. (The CRT also displays what is being printed). The name was selected so it would be easy to type, easy to remember and be illus- trative of its capabilities. Include the name of the file (and its extent) that is to be listed when asking for the program. (You may may include a ;S after the filename to show only on the CRT at fast speed. Useful to find what page to start printing on.) A>LISTT HELLO.ASM (normal) A>LISTT HELLO.ASM;S (shows on CRT only at fast speed) A menu then appears asking several questions: Do you want tear tabs to use roll paper? (Y/N): (1) Number of spaces to augment left margin (0-99): (2) Accept FF (Y/N): (3) Heading/date is: (4) Start at page : (5) Quit at page : (6) 1) A "Y" gives tear tabs for roll paper. Any other reply (including RET) defaults to fanfold with no tear tabs. 2) Ability to include 0-99 spaces at the left margin for those printers without adjustable margins. A RET de- faults to no spaces (normal left margin). Rejects any non-numeric characters except RET. 3) Ignores form feeds unless a 'Y' is typed. Outputs an ap- propriate number of line feeds enabling printers without form feed to paginate correctly. 4) Heading desired (such as current date, etc.) Up to 124 characters may be used. The name of the file plus cur- rent page number near the right margin are both automatic. A RET defaults to file name and page number. 5) Asks for starting page (defaults to page 1). 6) Asks for page to stop at (defaults to end of file). NOTE: There are two options which may be user-set. These are locations 0103 and 0104. They may be set with "DDT", "SID" or by editing and reassembling: 0103H 1) PAGCOL -- sets the column the Page number starts at. Some printers have 72 columns total, some 80, some 132, etc. (Byte 0103) 0104H 2) TTABN -- Sets the space between tear tabs for roll paper. Some printers have 72 columns, some 80, some 132, etc. (Byte 0104) Thus you can compensate for various printers and also print any portion of the file you wish. FEATURES: a) Shows on the CRT what is being printed. b) Optional fanfold or roll paper. Adds tear tabs if roll paper is selected. c) Can abort at any time with CTL-C, but finishes the cur- rent line first. d) Can change the location of the Page number for use with printers of 72 columns, 80 columns, 132 columns, etc. (Byte at location 0103, via DDT.) e) Can change the spacing between the tear tabs for use with printers of 72 columns, 80 columns, 132 columns, etc. (Byte at location 0104, via DDT.) f) Can indent up to 99 spaces to effectively provide an ad- justable left margin (many printers do not permit changing the margin). This allows you to easily center any printing. g) Can start on any page desired, saving paper (and time!) if you only wish to reproduce certain portions of a file. h) Can stop at any page desired, allowing the operator to do other things when only part of the file is needed. i) Shows the total number of pages in the file if you intion- ally (or otherwise) ask for a page number that is too high for the file. j) If a heading/date is longer than normal spacing for the page number, it is automatically moved further along. Up to 124 characters may be used for the heading/date. k) An option on the menu allows you to ignore form feed chars. It automatically paginates without form feeds in the text. l) Works equally well on printers without form feed since it inserts the correct number of line feeds to paginate. m) Visually prints control characters imbedded in the text other than CR, LF, form feed or tab. You can thus dis- cover any unknown characters that normally do not print. COMMENT: Line numbers can be added to any ASCII file with PIP.COM and the [N] option: A>PIP HELLO1.ASM=HELLO.ASM[N] Form feeds can be removed with PIP.COM and the [F] option. You can edit CTL-L (form feed char.) into the file to force a new page wherever desired. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ADDED: (v1.6) A>LISTT HELLO.ASM Starts printing with only the file name, type as the heading. The character doesn't need to be preceded by a space. A>LISTT HELLO.ASM .................... Starts printing with the file name, type PLUS the rest of the command line as the heading. The characters following the file name, type must be preceded by a space. The above options will allow LISTT to be run within a .SUB file. Any character can be substituted for , just patch it in at 04ACH & 04B6H. ADDED: By Paul Tan LISTT will send a printer initialization string. The string is currently set to ASCII NUL, and located at 0105-0114H (16 bytes) -- for patching with DDT. Since the printer initialization string is zeroed out, it should have no affect on the printout -- until patched. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *