Comments (6)
hi - yeah - i'm tracking this on a pull request. this is a very interesting regression.
from ansi_up.
Yea it is interesting. Is someone already working on fixing it?
from ansi_up.
Yes, patch should be within a few hours.
from ansi_up.
Hi - ok, tried to repro in my environment and there wasn't an issue.
Can you show me the html returned? Also, a little about your environment. I thought this was the same as the pull request, but it isn't.
from ansi_up.
Oh my god!! This is one of those facepalm moments.
Thanks for your prompt confirmation that this is a different issue than the pull request you have.
So I see the html is getting generated perfectly fine. But the text in the middle is not visible as its color is same as the background color is.
<pre id="console">
<span style="color:rgb(255, 85, 85)">Error retrieving a new session from the selenium server</span>
Error: connect ECONNREFUSED
at exports._errnoException (util.js:746:11)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:983:19)
<span style="color:rgb(187, 0, 0)">
Connection refused! Is selenium server started?
</span>
</pre>
Solution: I added css to change default color for all text to be green instead of black. I wonder how no one else faced this issue before :P
from ansi_up.
No worries. I guess a lot of people purposely set their text and background for output since a white background tends to not be what ANSI output is generated for.
Also, in the options, you can specify that you want classes instead. In fact, there is an example css/scss in the examples dir that allows you to theme the ansi_up output.
take care,
dru
from ansi_up.
Related Issues (20)
- iage
- Support for ansi terminal links HOT 16
- Wrong DTS is used in package.json HOT 1
- remove file ansi_up.d.ts HOT 1
- Line feed failure HOT 6
- Relative links not allowed HOT 4
- How to live stream a log file? HOT 3
- Parse backspace character? HOT 8
- Document how to set properties HOT 2
- Works not in browser "Unexpected token 'export'" HOT 1
- Does rendering URL requires escape_for_html set to false? HOT 3
- OSC hyperlinks do not work with spaces HOT 3
- Escape for html stopped woking since 5.0.0 HOT 1
- A function to remove ansi color flag, for get plane log. HOT 1
- automatic links from http/https text HOT 2
- Inclusive design: change `whitelist` to `allowlist`? HOT 1
- Handle xterm normal/reset escape sequence HOT 5
- Handle carriage returns HOT 11
- Fix VERSION file HOT 1
- Lib brings in Npm 9 HOT 2
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 ansi_up.