coldcore icon indicating copy to clipboard operation
coldcore copied to clipboard

windows: using coldcore from cmd (instead of dashboard) doesn't render properly

Open billygarrison opened this issue 3 years ago • 3 comments

This occurs when using command prompt or powershell

image

billygarrison avatar Mar 08 '21 16:03 billygarrison

@jamesob I don't know if there's an easy fix here. It looks like it might require third party tools or some sort of windows system hack to get it working: https://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences

A potential workaround could be to detect if the user is on windows and calling the prepare-send from the command line as opposed to dashboard. If that's the case then we display the message as default color?

billygarrison avatar Mar 27 '21 17:03 billygarrison

Somewhat unrelated question - to get coldcore to work on windows, I had to do pip install windows-curses, which takes away from the "standard Python only" mantra. Is this a deal breaker @jamesob?

billygarrison avatar Mar 27 '21 17:03 billygarrison

@billygarrison thanks for the filing the issue. I didn't realize that curses wasn't bundled with Python on windows environments, that's a shame. I guess we should update the README with that special case.

I guess we could also disable the color formatting pretty easily if we detect the user is on Windows.

jamesob avatar Apr 05 '21 15:04 jamesob