Skip to content

Conversation

@lilyball
Copy link
Contributor

Teach extra::term to support more terminal attributes than just color.

Fix the compiler diagnostic messages to print in bold instead of bright white. This matches Clang's output.

Cache the term::Terminal instead of re-parsing for every diagnostic (fixes #6827).

@lilyball
Copy link
Contributor Author

r? @cmr

@kud1ing
Copy link

kud1ing commented Jul 12, 2013

Thanks

@lilyball
Copy link
Contributor Author

Updated to the new local_data API that caused the previous breakage. r? @cmr

@lilyball
Copy link
Contributor Author

/bin/sh: line 1: 30686 Segmentation fault: 11 x86_64-apple-darwin/stage2/test/rustpkgtest-x86_64-apple-darwin --logfile tmp/check-stage2-T-x86_64-apple-darwin-H-x86_64-apple-darwin-rustpkg.log
make: *** [tmp/check-stage2-T-x86_64-apple-darwin-H-x86_64-apple-darwin-rustpkg.ok] Error 139

If I run make check on the exact same source tree that bors used, it passes just fine.

lilyball added 4 commits July 14, 2013 14:37
Also add .supports_attr() to test for attribute support without writing
anything to output.

Update .reset() to use sgr0 instead of op.
Clang actually highlights using bold, not using bright white. Match
clang on this so our diagnostics are still readable on terminals with a
white background.
Stuff the term::Terminal into TLS to avoid re-parsing for every single
message we want to color.

Fixes rust-lang#6827.
@lilyball
Copy link
Contributor Author

r? @cmr

bors added a commit that referenced this pull request Jul 14, 2013
Teach `extra::term` to support more terminal attributes than just color.

Fix the compiler diagnostic messages to print in bold instead of bright white. This matches Clang's output.

Cache the term::Terminal instead of re-parsing for every diagnostic (fixes #6827).
@bors bors closed this Jul 15, 2013
@bors bors merged commit 1d4c314 into rust-lang:master Jul 15, 2013
@lilyball lilyball deleted the term-attr branch July 15, 2013 00:36
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.

Cache Terminal in libsyntax

4 participants