Comments (9)
A 3-year-old bug still not resolved? :(
from ansi2html.
And please add this to pre's style to break long lines:
white-space: pre-wrap;
word-wrap: break-word;
from ansi2html.
And please add this to pre's style to break long lines:
This would be an easy pull-request. Would you like to be the one to add it?
from ansi2html.
Please handle tput sgr0
: revert back the current schema's color OR tell me how to reset that your script understands.
from ansi2html.
http://manpages.ubuntu.com/manpages/hardy/man5/terminfo.5.html
s0ds s0 Shift to codeset 0 (EUC set 0, ASCII)
...
s0ds=\E(B
So \E(B
is "Shift to codeset 0". I do not know what it is.
I'd like to just "turn off all attributes" by tput
.
from ansi2html.
I'll take a look at handling sgr0
when I can. It seems like it would need to close as many </span>
tags as had been opened.
from ansi2html.
Very dirty.
cat "${HC_LOG}.txt" \
| ansi2html --title="$HC_DOMAIN" --linkify --font-size=13px --light-background -s xterm \
| sed 's/\x1B(B\b//g' > "${HC_LOG}.html"
from ansi2html.
And please add this to pre's style to break long lines:
white-space: pre-wrap; word-wrap: break-word;
That was added in 2014 for release 1.0.7 by commit 418bef2 .
from ansi2html.
Could you please handle reset?
# tput sgr0|hexdump -C 00000000 1b 28 42 1b 5b 6d |.(B.[m|
I'm unsure about how that^^ sgr0 differs from \x1b[0m
(Wikipedia) semantically (if so). The latter is supported…
# hexdump -C <<<$'\x1b[0m'
00000000 1b 5b 30 6d 0a |.[0m.|
00000005
# echo $'\x1b[31mhello red\x1b[0m and hello normal' | ansi2html --inline
<span style="color: #aa0000">hello red</span> and hello normal
…since 2013 release 0.10.0 commit fce66a6.
from ansi2html.
Related Issues (20)
- 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
- Missing HTML Head and tags
- Is there a way to split output into multiple files?
- AttributeError: 'list' object has no attribute 'replace' HOT 1
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.