![]() ![]() Visit the GSP FreeBSD Man Page Interface. ![]() The ANSI art file formats BIN, XBIN and TND cannot be read fromĪnsifilter -i text_with_ansi.txt -o text_without_ansi.txt Parsing XBIN files overrides -art-width, -art-height and -map Plain text will be generated, if no output format is Provided by: aha0.5.1-2amd64 NAME aha Convert ANSI escape sequences to HTML SYNOPSIS aha -bhlnprsvwx -c file -f file -i X -L LANG -t TITLE -y STYLE DESCRIPTION aha reads ECMA-48 SGR-colored text from the standard input, converts it to colored HTML and writes it to the standard output. ![]() If no in- or output files are specified, stdin and stdout will be OPTIONS -h, -help print help -v, -version print version and license info Information if enc=NONE -p, -plain Ignore ANSI formatting information -w, -wrap= Wrap long lines -no-trailing-nl Omit trailing newline -no-version-info Omit version info comment -wrap-no-numbers Omit line numbers of wrapped lines (assumes -l) -derived-styles Output dynamic stylesheets (HTML/SVG)Īrt options -art-cp437 Parse codepage 437 ASCII art (HTML and RTF output) -art-bin Parse BIN/XBIN ASCII art (HTML output, no stdin) -art-tundra Parse Tundra ANSI art (HTML output, no stdin) -art-width Set ASCII art width (default 80) -art-height Set ASCII art height (default 150) The code is ugly at the moment and doesnt cover. The code is based on the snippet here which converts text to html. This was developed in answer to my question here, for printing such transcripts. Options -a, -anchors(=self) Add HTML line anchors (opt: self referencing, assumes -l) -d, -doc-title Set HTML/LaTeX/SVG document title -f, -fragment Omit HTML header and footer -F, -font= Set HTML/RTF/SVG font face -k, -ignore-clear(=false) Do not adhere to clear (ESC K) commands (default: true) -c, -ignore-csi Do not adhere to CSI commands (useful for UTF-8 input) -l, -line-numbers Print line numbers in output file -m, -map= Read color mapping file (see README) -r, -style-ref= Set HTML/TeX/LaTeX/SVG stylesheet path -s, -font-size= Set HTML/RTF/SVG font size -e, -encoding= Set HTML encoding (must match input file encoding) omit encoding This is a stab at converting a transcript generated by the Unix script command that uses ANSI escape sequences, used to colour the terminal, to HTML. x, -max-size= Set maximum input file size (examples: 512M, 1G default: 256M)įormats -T, -text Output text (default) -H, -html Output HTML -M, -pango Output Pango markup -L, -latex Output LaTeX -P, -tex Output Plain TeX -R, -rtf Output RTF -B, -bbcode Output BBCode -S, -svg Output SVG An Unicode escape sequence represents a single Unicode character formed by: a backslash the character u and four hexadecimal digits (0-9a-f). Options -i, -input= Name of input file -o, -output= Name of output file -O, -outdir= Name of output directory -t, -tail Continue reading after end-of-file (like tail -f). To generate formatted output (HTML, LaTeX, TeX, RTF). The command sequences may be stripped or be interpreted ĭESCRIPTION Ansifilter is a small utility to handle text files containing ANSI Ansifilter - ANSI escape code processor and converter ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |