Ansifilters

  795 downloads
1.7 GPL (GNU General Public License)    
2.8/5 20
Ansifilter handles text files containing ANSI terminal escape codes.

description

download

specifications

changelog

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
READ MORE   
Last updated on January 6th, 2012
2  
AnsifiltersAnsifilters

0 User reviews so far.

SUBMIT