Skip to content

Comments

refactor: use the atty crate for isatty() detection#862

Merged
homu merged 1 commit intoclap-rs:masterfrom
pkgw:pr-atty
Feb 19, 2017
Merged

refactor: use the atty crate for isatty() detection#862
homu merged 1 commit intoclap-rs:masterfrom
pkgw:pr-atty

Conversation

@pkgw
Copy link
Contributor

@pkgw pkgw commented Feb 19, 2017

Not only does this remove some unsafe code from clap itself, atty does the right thing on Windows too. This isn't relevant now since we don't currently support colorized output on Windows, but will come in handy if/when we implement that feature (#836).

Not only does this remove some unsafe code from clap itself, `atty` does the
right thing on Windows too. This isn't relevant now since we don't currently
support colorized output on Windows, but will come in handy if/when we
implement that feature (clap-rs#836).
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 90.609% when pulling 68e0368 on pkgw:pr-atty into 6f9a0ba on kbknapp:master.

@kbknapp
Copy link
Member

kbknapp commented Feb 19, 2017

Excellent thanks!

@homu r+

@homu
Copy link
Contributor

homu commented Feb 19, 2017

📌 Commit 68e0368 has been approved by kbknapp

homu added a commit that referenced this pull request Feb 19, 2017
refactor: use the atty crate for isatty() detection

Not only does this remove some unsafe code from clap itself, `atty` does the right thing on Windows too. This isn't relevant now since we don't currently support colorized output on Windows, but will come in handy if/when we implement that feature (#836).
@homu
Copy link
Contributor

homu commented Feb 19, 2017

⚡ Test exempted - status

@homu homu merged commit 68e0368 into clap-rs:master Feb 19, 2017
@pkgw pkgw deleted the pr-atty branch February 19, 2017 18:35
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.

4 participants