Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Windows color support #81

Open
eternaleclipse opened this issue Oct 1, 2018 · 2 comments
Open

Enhancement: Windows color support #81

eternaleclipse opened this issue Oct 1, 2018 · 2 comments

Comments

@eternaleclipse
Copy link
Contributor

This can be achieved by moving to colorama, which does cross-platform text coloring.

@sashs
Copy link
Owner

sashs commented Oct 1, 2018

Thx, I know. I tried to have just a view dependencies. At the moment you just have to install capstone and filebytes to get ropper work.
However, I have an idea, how I can accomplish that.

@eternaleclipse
Copy link
Contributor Author

eternaleclipse commented Oct 1, 2018

If minimizing dependencies is an objective, we can set the output color directly with GetStdHandle and SetConsoleTextAttribute using ctypes:
https://www.burgaud.com/bring-colors-to-the-windows-console-with-python

Another option is to check for colorama and if it doesn't exist, print without color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants