Ropper icon indicating copy to clipboard operation
Ropper copied to clipboard

Enhancement: Windows color support

Open eternaleclipse opened this issue 5 years ago • 2 comments

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

eternaleclipse avatar Oct 01 '18 17:10 eternaleclipse

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.

sashs avatar Oct 01 '18 17:10 sashs

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.

eternaleclipse avatar Oct 01 '18 18:10 eternaleclipse