-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 terminal support checking. Fixes #41587 #41665
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @eddyb (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR! Looks like you have some errors in the code. I'm personally not familiar with this area, so I don't know if that method exists, but it seems at least possible that it doesn't -- grepping for it in Rust's source returned nothing for me. Where did you expect the
|
The supports_reset is supposed to be a method provided by the term::Terminal trait. https://stebalien.github.io/doc/term/term/trait.Terminal.html#tymethod.supports_reset. I assumed that the term crate in rust was provided by that term crate, but I guess it's its own in-tree version? |
Yeah, the compiler's term crate is in-tree ( We'll try to get you a decision on what to do here soon. |
Thank you |
I asked @alexcrichton a while ago about libterm and he said it would be good to move to the crates.io version, he just hasn't found the time to do it yet. A PR doing that would be welcome (but ideally we'd fix #27812 first). |
Yes I'd love to see libterm from crates.io integrated into the compiler! |
No description provided.