Summary

Description

This is a small utility that takes (colored) console output from a script of program and converts it into a HTML file. It tries to preserve the output as good as possible.

For more information and tips see manpage.

Supports

  • Normal terminal foreground and background color.

  • Default 16 color codes.

  • Bright 16 color codes.

  • Advanced color codes (256 colors).

  • Blink,bold,italic,underline,strike

  • UTF8

Usage

Nicely generate a colored git log output:

git log -u --color | out2html -t "git log output" -o result.html

Bit pointless, but get a HTML version of your google calendar:

gcalcli calw | out2html -t "Agenda" -o agenda.html

To get the color output of a program that detect if it is running in a tty:

script -q -c "task" | out2html -o tasklist.html

Example output

Running out2html on task colors: output.

Dependencies

  • C compiler

  • glib

License

The program is licensed under the GPL-v2 license.

Download

The source code can be found here.