home *** CD-ROM | disk | FTP | other *** search
-
-
- QLISTF - 1.00 (DOS & OS/2)
- Documentation
-
- Copyright 1992-1993, Thomas G. Harold, All Rights Reserved.
-
-
- QLISTF [switches] [infile ...] [-Ooutfile]
-
- Switches:
- -ff{pdtf} - Set footer format (page#,date,time,fname)
- -hf{pdtf} - Set header format (page#,date,time,fname)
- -lf{z|l|r} - Set line number format
- -lix - Set line number increment value to x
- -ll{y|n} - Display line numbers?
- -lnx - Set starting line number to x
- -lp{y|n} - Reset line number on each new page?
- -lwx - Set line number width to x
- -mbx - Set bottom margin to x lines
- -mlx - Set left margin to x columns
- -mtx - Set top margin to x lines
- -pf{z|l|r} - Set page number format
- -pix - Set page number increment value to x
- -plx - Set page length to x lines
- -pnx - Set starting page number to x
- -pwx - Set page number width to x
- -sc{codes} - Set printer setup codes eg -sc27,15
- "-ls{str}" - Set seperator string
- @filename - Reads switch settings from a file
-
-
- QLISTF is a program that is designed to print code listings
- complete with headers showing the file name, and line numbers.
- The following documentation applies to both DOS & OS/2 versions.
- The DOS & OS/2 versions are distributed as a single package and
- are not seperate programs.
-
- -----------------------------------------------------------------
-
- I. Installation:
-
- To install QLISTF, copy QLISTF.EXE to a directory in your
- DOS PATH statement. QLISTF2.EXE is the OS/2 executable and
- should be placed in with other OS/2 programs.
-
-
- II. Usage:
-
- A. General use
-
- QLISTF will by default read from standard input and
- write to standard output. This allows the use of the
- DOS pipe & redirection facility. If a file name or
- multiple file names (wildcards are allowed) is specified
- on the command line, QLISTF will read instead from
- those files.
-
- In order to send the output of QLISTF to a file
- instead, use the "-Ofilename" paramenter, where filename
- is the name of the file that you want to write to.
-
- To send the output of QLISTF directly to the printer
- use DOS's redirection command: e.g.
-
- QLISTF ... > prn
-
- QLISTF will print a list of definable switches and
- their current default values by typing:
-
- QLISTF -?
-
-
- B. Switch Precedence
-
- QLISTF processes the command line switches in the
- order that they appear. So if you define the left margin
- twice, the second definition will override the first.
- This also applies to reading switch settings from a file:
- QLISTF will read the file as soon as it encounters a "@"
- switch.
-
-
- C. Switch Settings Files (@filename)
-
- Switch settings files allow you to create more detailed
- settings without trying to fit everything into the 128
- characters that DOS allows on the command line. To use
- a switch settings file, use the following command:
-
- QLISTF @filename ...
-
- You can include multiple switch settings files, and
- even mix normal switches with switch settings file names.
- Each settings file will be processed as soon as it is
- encountered in the list of switches.
-
- Basically, these are files containing switches, with
- one switch per line. The '-' part of the switch MUST be
- the first character on the line.
-
- You cannot nest switch files at this point. If asked,
- I will probably include this in a future version. You must
- also specify the complete pathname of the switch settings
- file. Depending on demand, I am also considering allowing
- an environment variable to point to the directory which
- contains your switch setting files.
-
- Included in the package are some sample settings files
- with an extension of *.QLS.
-
-
- D. Switch settings
-
- -ff{pdtf} - Set footer format (page#,date,time,fname)
- -hf{pdtf} - Set header format (page#,date,time,fname)
-
- Header and footer formats can contain any or all of
- the following items: Page #, Current Date, Current Time,
- File Name. To print the current date & time at the top
- of the page, and the file name and page number at the
- bottom of the page, use the following command:
-
- QLISTF -hfdt -fffp
-
- -lf{z|l|r} - Set line number format
-
- Line numbers can be formatted one of three ways.
- Left justified, right justified, or zero filled. The
- table below shows the formatting performed by each of
- the possible options.
-
- -lfz 0093
- -lfl 93
- -lfr 93
-
- -lix - Set line number increment value to x
- -ll{y|n} - Display line numbers?
- -lnx - Set starting line number to x
- -lp{y|n} - Reset line number on each new page?
- -lwx - Set line number width to x
-
- Line numbers default to starting with 0001,
- incrementing by 1, with a width of 4, and not starting
- over at the top of each page. It is possible to
- change any of these behaviors, or even turn off the
- line numbers all together.
-
- -mbx - Set bottom margin to x lines
- -mlx - Set left margin to x columns
- -mtx - Set top margin to x lines
-
- Use the above options to change your margins. QLISTF
- does not make use of a right margin, nor does it trim off
- any characters that may cause the printer to wrap to the
- next line or that do not fit on the paper.
-
- -pf{z|l|r} - Set page number format
-
- Page numbers can also be formatted as left justified,
- right justified, or zero filled. See the line number
- format section for examples of each format type.
-
- -pix - Set page number increment value to x
- -pnx - Set starting page number to x
- -pwx - Set page number width to x
-
- Page numbers default to starting with 1, incrementing
- by 1, with a width of 4. It is possible to change this
- behavior with the above switches. To turn off printing of
- page numbers, see the Header/Footer formatting options.
-
- -plx - Set page length to x lines
-
- Page length defaults to 63, which is the maximum
- number of lines that QLISTF will print (including headers,
- footers, top margins, and bottom margins) before sending
- a form-feed to the printer.
-
- -sc{codes} - Set printer setup codes eg -sc27,15
-
- This switch allows printer setup codes to be sent to
- the printer. Codes can be entered as either decimal,
- octal (#'s beginning with "0" e.g. 073), or hex (#'s
- beginning with "0x" e.g. 0x1B). The maximum number of
- codes that can be sent to the printer is around 500
- bytes. QLISTF will warn you if you send more than
- 450 bytes that you are close to filling up the printer
- setup string buffer.
- You can also split setup codes across multiple
- switches. They will be sent in the order that the
- setup code switch was encountered.
-
- "-ls{str}" - Set seperator string
-
- Seperator strings are used to seperate line numbers
- from the text that they are numbering. Seperator strings
- can be up to 20 characters in length, and can contain
- spaces. The default seperator string is a row of three
- dots ("..."). The following example shows how to change
- the seperator string to five underlines.
-
- QLISTF "-ls_____" ...
-
- @filename - Reads switch settings from a file
-
- Switch settings files are useful for large,
- cumbersome "-sc..." setup code switches. Or for
- relating groups of switch settings that are often
- used.
-
- infiles... - Input is read from a file or list of files
- -Ooutfile - Redirects output to a file
-
- To create a QLISTF listing of all the *.C & *.H
- files in the current directory, as well as the MAKEFILE,
- and send the output to MYFILES.PRN, use the following
- command:
-
- QLISTF *.C *.H MAKEFILE -Omyfiles.prn
-
- -----------------------------------------------------------------
-
- History:
-
- 1.02 May 1993
- Original release version.
-
- -----------------------------------------------------------------
-
- Usage of QLISTF is free to individuals using it for
- personal/private use. Educational institutions are also granted
- free usage. I do ask that if QLISTF is to be used by an
- educational institution that I be notified for informational
- purposes. Use in a business environment or for business purposes
- requires a site licence. (See SITELICN.DOC for current pricing
- policy.)
-
- DISCLAIMER
- This program is distributed "as is". I disclaim all
- warranties, expressed or implied, including, without
- limitation, the warranties of merchantability and of
- fitness for any purpose. I will assume no liability for
- damages, direct or consequential, which may result from
- the use of this program.
-
- Feel free to distribute this program so long as no money
- changes hands except for media/connect-time costs. Once again, I
- ask that if this program is distributed by any mail-order
- distribution company that I be notified.
- Modifications may not be made to QLISTF except for
- personal/private use. Modified copies may not be distributed in
- any form. No additions, deletions, or modifications may be made
- to the contents of the archive. The chosen archive format may
- be changed so long as the contents of the archive remain intact.
-
- -----------------------------------------------------------------
-
- Please contact me if you have any suggestions or questions about
- the program. I can be reached at the following address:
-
- Thomas G. Harold
- 2206 Tracey's Rd.
- Sparks, MD. 21152
-
- Or by using Compuserve MAIL:
-
- Thomas G. Harold - 71750,3724
-
- Please place the word "QLISTF" where I can easily see it,
- (e.g. in the subject field, or on the address label). This will
- help me to more easily attend to your correspondence.
-
-