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

Add ability to set color capability on loggocolor #34

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

makyo
Copy link
Contributor

@makyo makyo commented Feb 12, 2019

I've run across a situation where I would like to force loggocolor to write colors (in this case, writing to a termcap view which implements io.Writer). However, github.com/juju/ansiterm does not see this as a terminal - rightly so - so this branch calls `ansiterm.Writer.SetColorCapable before returning loggocolor.Writer in the

I've run across a situation where I would like to force loggocolor to write colors (in this case, writing to a termcap view which implements io.Writer). However, `github.com/juju/ansiterm` does not see this as a terminal - rightly so - so this branch adds a new constructor that calls `ansiterm.SetColorCapable` for the Writer before returning it. It leaves the current API unchanged.
@jujubot
Copy link
Contributor

jujubot commented Feb 12, 2019

Can one of the admins verify this patch?

@howbazaar
Copy link
Contributor

$$merge$$

@howbazaar
Copy link
Contributor

All seems very reasonable to me.

@jujubot jujubot merged commit d976af3 into juju:master Feb 12, 2019
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.

3 participants