Ansifilter project handles text files containing ANSI terminal escape codes. The command sequences may be stripped or be interpreted to generate formatted output (HTML or RTF).
These are the options of the command line interface:
File handling:
-i, --input=< file > Input file (optional)
-o, --output=< file > Output file (optional)
Output text formats:
-T, --text (default) Output text
-R, --rtf Output RTF
-H, --html Output HTML
HTML and RTF options:
-d, --doc-title Set HTML document title
-e, --encoding Set HTML encoding (must match input file encoding)
-F, --font=< font > Set font face
-s, --font-size=< fs > Set font size
-f, --fragment Omit HTML header and footer
-p, --plain Ignore formatting information
Other options:
-h, --help Print help
-v, --version Print version and license info
Examples:
ansifilter -i text_with_ansi.txt -o text_without_ansi.txt
ansifilter *.txt
tail -f server.log | ansifilter
The GUI version also accepts the first command line argument as input file name.
Supported control sequences
Formatting:
Bold, Underline, Italic, Blink
Colors:
Black, Red, Green, Yellow, Blue, Magenta, Cyan, White
Other:
Conceal/Reveal, Image positive/negative
What is new in this release:
- Grep's coloured output is now parsed correctly.
What is new in version 1.2:
- Support for LaTeX and TeX output was added.
- Minor bugs were fixed.
Comments not found