Skip to content

Windows cmd 2 -- add color to output on Windows #49

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

Merged
merged 7 commits into from
Aug 12, 2015

Conversation

minchinweb
Copy link
Contributor

I offer this as a solution to #32. colorama is used. What colorama does is (on Windows) is take ANSI color sequences and convert them to Win32 API calls. On other platforms, it does nothing. In this case, I have also made it so colorama is only installed and called in Windows systems. In my experience, colorama is the simplest and easiest way to add cross-platform color command-line output.

This pull request builds on #48, although no changes in that pull request should be required to make this work.

Now pictures:

Before

before

After

after

bram85 added a commit that referenced this pull request Aug 12, 2015
Windows cmd 2 -- add color to output on Windows
@bram85 bram85 merged commit 2dab3db into topydo:master Aug 12, 2015
@bram85
Copy link
Member

bram85 commented Aug 12, 2015

Looks great, thanks a lot for your contribution!

@minchinweb minchinweb deleted the windows-cmd-2 branch August 12, 2015 17:45
@minchinweb
Copy link
Contributor Author

Glad to help!

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

Successfully merging this pull request may close these issues.

2 participants