home *** CD-ROM | disk | FTP | other *** search
- ------------------------------------------------------------------------
- ANSTRIP strip ANSI sequences Ver 1.6 (c) 1994 Horst Schaeffer
- ------------------------------------------------------------------------
-
- Syntax: ANSTRIP < in.txt > out.txt [/p]
-
- ANSTRIP reads from STDIN and writes to STDOUT. File size not limited.
-
- ANSI sequences are removed if they meet the following specifications:
-
- + starting with ESC, "["
-
- + followed by numbers, semicolons, strings in quotes or "?", "="
- or variables (like %1, %%a, %VAR%)
-
- + terminated by any character from "A" to "Z" (upper or lower case)
- or "@"
-
- With Option /p only keyboard-redefinition sequences are removed
- (sequences terminated by "p"). Please note that this is NOT a 100% safe
- protection against ANSI bombs in BAT files (especially when variables
- are used).
-
- ANSTRIP displays a message (to STDERR) and returns errorlevel 1
- if any "p"-sequences were removed.
-
- Help message on command errors (errorlevel 255).
-
- DISCLAIMER:
- -----------
-
- There are no warranties of any kind, nor any liability by the author.
- Users accept full responsibility for the use they make of the software
- and for any damage caused thereby.
-
- = 09 FEB 1995
-
-