File: ansi2html.1.txt

package info (click to toggle)
python-ansi2html 1.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: python: 1,361; makefile: 3
file content (84 lines) | stat: -rw-r--r-- 1,572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
ANSI2HTML(1)
============
:doctype: manpage
:man source: {manual_package}
:man version: {manual_version}
:man manual: {manual_title}


NAME
----
ansi2html - Convert text with ANSI color codes to HTML


SYNOPSIS
--------
*ansi2html* ['OPTIONS'] [*--inline*] [*--partial*]


DESCRIPTION
-----------
Tool to convert text with ANSI color codes to HTML.


OPTIONS
-------

*-p*, *--partial*::
	Process lines as them come in.  No headers are produced.

*-i*, *--inline*::
	Inline style without headers or template.

*-H*, *--headers*::
	Just produce the "<style>" tag.

*-f* 'SIZE', *--font-size*='SIZE'::
	Set the global font size in the output.

*-l*, *--light-background*::
	Set output to "light background" mode.

*-a*, *--linkify*::
	Transform URLs into "<a>" links.

*-u*, *--unescape*::
	Do not escape XML tags found in the input.

*-m*, *--markup-lines*::
    Surround lines with "`<span id='line-n'>..</span>`".

*--input-encoding='ENCODING'*::
	Specify input encoding.

*--output-encoding='ENCODING'*::
	Specify output encoding.

*-h*, *--help*::
	Show this help message and exit.

*--version*::
	Show program's version number and exit.


EXAMPLES
--------
-------------------
$ ls --color=always | ansi2html > directories.html

$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html

$ task burndown | ansi2html > burndown.html
-------------------


HOMEPAGE
--------
* GitHub: https://github.com/ralphbean/ansi2html
* PyPI: https://pypi.python.org/pypi/ansi2html


AUTHORS
-------
* Ralph Bean <rbean@redhat.com>
* Sebastian Pipping <sebastian@pipping.org>