Skip to content

Conversation

emberian
Copy link
Member

This will let everyone (non-windows, at least) who can see colors see the glorious colors rustc produces.

return Ok(Terminal {out: out, ti: inf, color_supported: cs});
}
fn fg(&self, color: u8) {
self.out.write(expand(*self.ti.strings.find(&~"setaf").unwrap(), [Number(color as int)], [], []));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be more efficient (avoids allocation) with find_equiv.

@emberian
Copy link
Member Author

r? @thestinger

bors added a commit that referenced this pull request May 31, 2013
This will let *everyone* (non-windows, at least) who can see colors see the glorious colors rustc produces.
bors added a commit that referenced this pull request Jun 3, 2013
This will let *everyone* (non-windows, at least) who can see colors see the glorious colors rustc produces.
@bors bors closed this Jun 3, 2013
@bors bors merged commit ae5f3de into rust-lang:incoming Jun 3, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 12, 2021
Refactor: arrange lints in `methods` module

This PR arranges methods lints so that they can be accessed more easily.
Basically, I refactored them following the instruction described in rust-lang#6680.

changelog: Move lints in methods module into their own modules.
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