GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ansifilter(1) user documentation ansifilter(1)

Ansifilter - ANSI escape code processor and converter

ansifilter [d:i:F:m:o:r:s:e:fhptvHRT] [-i input file] [-o output file] [--text] [--html] [--latex] [--tex] [--rtf] [input files]

Ansifilter is a small utility to handle text files containing ANSI terminal escape codes. The command sequences may be stripped or be interpreted to generate formatted output (HTML, LaTeX, TeX, RTF).

See the README file for details.

Name of input file
Name of output file
Name of output directory
Continue reading after end-of-file (like tail -f). Use system tail if available.
Set maximum input file size (examples: 512M, 1G; default: 256M)

Output text (default)
Output HTML
Output Pango markup
Output LaTeX
Output Plain TeX
Output RTF
Output BBCode
Output SVG

Add HTML line anchors (opt: self referencing, assumes -l)
Set HTML/LaTeX/SVG document title
Omit HTML header and footer
Set HTML/RTF/SVG font face
Do not adhere to clear (ESC K) commands (default: true)
Do not adhere to CSI commands (useful for UTF-8 input)
Print line numbers in output file
Read color mapping file (see README)
Set HTML/TeX/LaTeX/SVG stylesheet path
Set HTML/RTF/SVG font size
Set HTML encoding (must match input file encoding); omit encoding information if enc=NONE
Ignore ANSI formatting information
Wrap long lines
Omit default foreground color
Omit trailing newline
Omit version info comment
Omit line numbers of wrapped lines (assumes -l)
Output dynamic stylesheets (HTML/SVG)

Parse codepage 437 ASCII art (HTML and RTF output)
Parse BIN/XBIN ASCII art (HTML output, no stdin)
Parse Tundra ANSI art (HTML output, no stdin)
Set ASCII art width (default 80)
Set ASCII art height (default 150)

print help
print version and license info

If no in- or output files are specified, stdin and stdout will be used for in- or output. Plain text will be generated, if no output format is given. Parsing XBIN files overrides --art-width, --art-height and --map options. The ANSI art file formats BIN, XBIN and TND cannot be read from stdin.

File conversions:

ansifilter -i text_with_ansi.txt -o text_without_ansi.txt

tail -f server.log | ansifilter

ansifilter *.txt

Andre Simon <a.simon@mailbox.org>

More information at http://www.andre-simon.de/.

2023-01-08 Andre Simon

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.