forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect whether or not the terminal supports color.
Before v0.4, term used to return `Ok(true)` if something succeeded, `Ok(false)` if the operation was unsupported, and `Err(io::Error)` if there was an IO error. Now, it returns `Ok(())` if the operation succeeds and `Err(term::Error)` if the operation fails. If the operation is unsupported, it returns `Err(term::Error::NotSupported)`. This means that, if `op` is unsupported, `try!(term.op())` will now return an error instead of silently failing (well, return false but that's effectively silent). Fixes rust-lang#2338
- Loading branch information
Showing
3 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters