Code Monkey home page Code Monkey logo

Comments (7)

mihnita avatar mihnita commented on June 14, 2024

I confirm, I can reproduce this.
Did not have tame to debug it during this week-end, but I promise I will do it ASAP.

from ansi-econsole.

mihnita avatar mihnita commented on June 14, 2024

Submitted a fix. It would be great if you can confirm it works for you too.
Thank you,
Mihai

from ansi-econsole.

suikki avatar suikki commented on June 14, 2024

Thanks for the fast fix.The build console seems to be working now.

However, I had ansi console disabled so I missed that the color codes were not working properly either. This might be a separate issue.

from ansi-econsole.

mihnita avatar mihnita commented on June 14, 2024

the color codes were not working properly either.
Sorry, but can you please give some details on this?
Thank you,
Mihai

from ansi-econsole.

suikki avatar suikki commented on June 14, 2024

Yeah, I just wanted to check if the color codes that are generated by my program are somewhat sane. I was using "\033[m" to reset all coloring back to default. It worked before, but it was not doing anything anymore. Using "033[0m" instead fixed the issue (I don't really know much about ansi color codes, so I don't know if the former should even work).

from ansi-econsole.

mihnita avatar mihnita commented on June 14, 2024

I don't think \033[m ever worked, but I have never tried it. If you did, and it worked, then I believe you :-)

Anyway, I think you are right, it should work:
"With no parameters, CSI m is treated as CSI 0 m (reset / normal)"
http://en.wikipedia.org/wiki/ANSI_escape_code

Thank you, will fix.

from ansi-econsole.

mihnita avatar mihnita commented on June 14, 2024

Pushed a new version (finally).
Did some cleaning on how the default colors are handled (and I hope I did not break anything).
Fixes:

  • Reset using \033[m (as well as \033[0m)
  • invert and conceal with default foreground and / or background color
  • multiple lines with attributes, with the first one containing the escape
    (this did not make it in a public build)

from ansi-econsole.

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.