vt2html - convert text with VT escape codes into HTML

Synopsis

vt2html [options] [file name]
vt2html --help
vt2html --version

Description

This program does a crude conversion of a text file containing VT escape codes into HTML. Currently, only foreground and background colors and bold and underlining are supported by vt2html. This is more than enough to handle the output of hasc(1), for which it was written.

vt2html takes input from the file specified, or from the standard input if no file name was given on the command line. The output is sent to the standard output.

Options

-h, --no-heading

By default vt2html produces a complete HTML file suitable for viewing in a browser, but with this option the heading and ending are missed off so that the output is just a <PRE> block, which can then be inserted into an existing HTML file.

-H, --help

Give a brief description of what vt2html does, with a synopsis showing allowable options and their meaning.

-V, --version

Print the name and version number of the program.

Bugs

It doesn't understand many VT codes.

Formating is cancelled at the end of each line.

The underlining support has not been tested. Nothing has been tested with anything other than the output of hasc and ls(1).

Copying

Copyright 1999 Geoff Richards

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.

Author

Geoff Richards <geoff@laxan.com>

http://ungwe.org/free_software/hasci/

See Also

hasc(1), for displaying files in hexadecimal and ASCII with VT codes for color coding (when the -o option is specified).