Git Product home page Git Product logo

Comments (4)

tonythebest avatar tonythebest commented on July 17, 2024

[ESC][0;36mgood.com[ESC][0;0m:
[ESC][0;1;33mgood[ESC][0;0m

from pepper.

tonythebest avatar tonythebest commented on July 17, 2024

These chars are probably the definition of colors?
https://bluesock.org/~willkg/dev/ansi.html

from pepper.

tonythebest avatar tonythebest commented on July 17, 2024

@gtmanfred Can you take a look at why

print(result, file=ofile)
adds color code like [ESC][0;36m when printing to a file on macOS

https://stackoverflow.com/questions/6159900/correct-way-to-write-line-to-file
is "print" used here because we want it to be compatible with python2? Can we use f.write?

Thank you.

from pepper.

gtmanfred avatar gtmanfred commented on July 17, 2024

I do not know why print was used here, probably just to be consistent across the board. I also do not know why it would be putting those escape codes.

Also I am no longer involved with maintaining the any projects in the salt community @mattp- might be able to help you. Otherwise you can try joining the saltstack slack or irc and ask there.

from pepper.

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.