Skip to content
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

Use is_terminal to implement isatty #2609

Merged
merged 3 commits into from
Oct 21, 2022
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Oct 21, 2022

This means that Linux targets on Windows hosts should give a correct reply. We still don't have an implementation for Windows targets though, that requires some tracking of handles.

Fixes #2419

Also restructure our fs tests a bit to test the parts that don't need libc separately.

as_unix_host_fd is now not used any more, but it could become useful again in the future so I kept it.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 21, 2022

📌 Commit fb9a681 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 21, 2022

⌛ Testing commit fb9a681 with merge 4e566ec...

@bors
Copy link
Collaborator

bors commented Oct 21, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 4e566ec to master...

@bors bors merged commit 4e566ec into rust-lang:master Oct 21, 2022
@RalfJung RalfJung deleted the is_terminal branch October 24, 2022 21:52
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.

Use is_terminal to implement isatty
2 participants