4 ms·
Not sure to be honest. I've developed, tested and used this only on linux (various flavors). That said, I can't think of reasons why it shouldn't except for may
by devnonymous 9y ago
Not sure to be honest. I've developed, tested and used this only on linux (various flavors). That said, I can't think of reasons why it shouldn't except for maybe the terminal color sequences. Not sure how compatible those are.
I'd love to hear whether it does. If it doesn't it would be good to get bug reports or pull requests.
- sashk 9y agoIt shouldn't be hard to add windows support with colorama[1]. [1]: https://pypi.python.org/pypi/colorama https://pypi.python.org/pypi/colorama
- devnonymous 9y agoThanks. One of the (personal) goals for this was to keep it simple all in one file (that's why the code is 540 lines with comments and help and license text) and be dependent only on the stdlib. This lets me just copy it over (using the bash function I have shown in the demo) everywhere I ssh without having to pip install anything. Additionally it just works out of the box for any virtualenv ...even something created with mktmpenv. Of course, if someone doesn't feel the same, they are encouraged to make this their own ! I've put in effort to ensure the code is easy to read and modify.
- sashk 9y agoyou can always hide colorama's import and initialization behind try: except ImportError block, which will allow it to work when it's available, and skip when it's not.