Coder Social home page Coder Social logo

Comments (6)

drudru avatar drudru commented on July 30, 2024

hi - yeah - i'm tracking this on a pull request. this is a very interesting regression.

from ansi_up.

jitenoswal avatar jitenoswal commented on July 30, 2024

Yea it is interesting. Is someone already working on fixing it?

from ansi_up.

drudru avatar drudru commented on July 30, 2024

Yes, patch should be within a few hours.

from ansi_up.

drudru avatar drudru commented on July 30, 2024

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.

jitenoswal avatar jitenoswal commented on July 30, 2024

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.

drudru avatar drudru commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.