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

Explicitly enable color escape sequences on windows #9

Merged
merged 1 commit into from
Mar 4, 2019

Conversation

corneliusweig
Copy link
Owner

@corneliusweig corneliusweig commented Mar 2, 2019

The problem of colored output in PowerShell has been tackled by logrus and konsorten. However, due to the lack of logging, the color codes are not enabled on PowerShell for rakkess. Therefore, this PR explicitly enables ANSI color codes in PowerShell.

Fixes #6

@itowlson Could you kindly check if this works for you?

Usually, logrus does this when printing the first log message. Since we usually don't log anything before printing, this setup work needs to be done manually. The implementation is very much based on that from logrus.

Fixes #6
@itowlson
Copy link
Contributor

itowlson commented Mar 4, 2019

Works beautifully for me! Nice find - I might try to port this back to Draft if you have no objections.

@corneliusweig corneliusweig merged commit a1093c2 into master Mar 4, 2019
@corneliusweig corneliusweig deleted the powershell-colors branch March 4, 2019 08:22
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