Skip to content

Simple Python tool to convert ANSI color characters to HTML with colored style.

License

Notifications You must be signed in to change notification settings

ArdeshirV/ansi2html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

ansi2html

A Python tool to convert ANSI/VT100 terminal control colored input to HTML.

Supports regular ANSI colors, indexed colors and 24 bit RGB color codes.

Quickstart

You need Python 2.6 or later. Python 3 is also supported.

Usage:

git log --color | python ansi2html.py > git_log.html

Python API:

from ansi2html import ansi2html
output = ansi2html('\033[1;32Hello\033[m')

Obligatory

Copyright © 2013 German M. Bravo (Kronuz)

Licensed under the MIT license, reproduced in LICENSE.

About

Simple Python tool to convert ANSI color characters to HTML with colored style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%