pycontribs / ansi2html

Convert text with ansi color codes to HTML
GNU Lesser General Public License v3.0
386 stars 77 forks source link

colors are lost during conversion #89

Closed ssbarnea closed 5 years ago

ssbarnea commented 6 years ago

Some colors are during conversion made by ansi2html as the terminal output looks very different than the produced html file.

#!/usr/bin/env bash
echo -e "\x1B[31m foobar \x1B[0m"
echo -e "\x1B[32m foobar \x1B[0m"
echo -e "\x1B[96m foobar \x1B[0m"
echo -e "\x1B[01;96m foobar \x1B[0m"
echo -e "\x1B[01;95m foobar \x1B[0m"
echo -e "\x1B[01;94m foobar \x1B[0m"
echo -e "\x1B[01;93m foobar \x1B[0m"
echo -e "\x1B[01;91m foobar \x1B[0m"
echo -e "\x1B[01;90m foobar \x1B[0m"
echo -e "\x1B[01;89m foobar \x1B[0m"
echo -e "\x1B[01;36m foobar \x1B[0m"
180810-tripleo-quickstart master aa
ralphbean commented 5 years ago

Looks like this was fixed by #90. :)