Comments (1)
Hi @lampwins,
I replaced print(html)
with print(a)
and the output showed that the current use of \e
is the problem. Python doesn't know an escape sequence \e
. By replacing \e
with \x1b
ansi2html is being fed true ANSI color codes, and then it works as expected.
from ansi2html.
Related Issues (20)
- Bright color generation is buggy
- ❤️🩹 Looking for maintainers! HOT 17
- Add typehints
- Fix type hints in ansi2html/converter.py HOT 1
- Support white background (currently always #AAAAAA gray) HOT 5
- Does not support colon-delimited "flavor" of 24-bit "truecolor" escape sequences. HOT 5
- use unittest.mock instead of mock HOT 2
- ResoureWarnings in style.py HOT 2
- [>=1.7.0a0] typing_extensions missing from requirements HOT 1
- Copyright headers still refer to GPL HOT 3
- Restore man page rendering dropped by pull request #194 HOT 4
- Import "ansi2html" could not be resolved HOT 1
- Hardcoded "python3" in tests/test_ansi2html.py HOT 9
- Hardcoded "python3" in tests/test_ansi2html.py HOT 1
- Hardcoded "python3" in tests/test_ansi2html.py HOT 1
- Hardcoded "python3" in tests/test_ansi2html.py HOT 1
- font_size option does not have an effect
- Project description in pyproject.toml (and on PyPI) is from ansible-lint rather than ansi2html HOT 6
- How to use my own custom colors and background color HOT 1
- Final release for 1.9? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansi2html.