home *** CD-ROM | disk | FTP | other *** search
-
- CVTANSI - converts mainframe style ANSI printer control codes into
- ASCII control characters. v1.02 .
-
-
- Mainframe and other environments use printable characters in column 1 to
- control printer positioning. The valid characters in column 1 are:
- ' ' - (blank space) causes the printer to print this line directly after the
- last line.
- '0' - double-space this line after the last line.
- '-' - triple-space this line after the last line.
- '+' - overprint this line on top of the last line. This is often used to
- create bold text.
- '1' - formfeed to the beginning of the next page.
-
-
- CVTANSI will take these sequences and convert them into the standard ASCII
- print control characters of CR (Carriage Return - 0Dh), LF (Line
- Feed - 0Ah), and FF (Form Feed - 0Ch). CVTANSI will also strip off the
- first byte of each line (the ANSI control character). If CVTANSI can't
- understand the character in column 1, it will not strip it off and will
- single-space it after the last line.
-
-
- The command syntax is:
- CVTANSI <input file> <output file>
- where <input file> is the file with ANSI characters and <output file>
- is where you want the conversion written to.
-
-
- Example: You have a mainframe program listing you have downloaded to your
- PC as PROGRAMX.LST and want to write it to a printable ASCII file,
- PROGRAMX.TXT. You would type:
-
- CVTANSI PROGRAMX.LST A:\PROGRAM.TXT
-
-
- CVTANSI is copyright (c) 1991 by Paul McGinnis. This program may be freely
- distributed if you include this documentation. This program may not be
- sold or altered without permission from the author. The author will not
- be liable for any damage arising from the use or misuse of this program.
-
-
- I can be reached at:
- Paul McGinnis
- P.O. Box 28084
- Santa Ana, CA 92799
- Internet: TRADER@cup.portal.com
- CompuServe: 76056,201
- GEnie: EXP.ENG-
- America Online: PaulMcG