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

Work around missing TCGETS2/TCSETS2 on WSL and Android. #1146

Closed
wants to merge 2 commits into from

Commits on Aug 31, 2024

  1. Work around missing TCGETS2/TCSETS2 on WSL.

    WSL appears to be lacking support for `TCGETS2` and `TCSETS2`, so teach
    rustix's `tcgetattr` and `tcsetattr` how to fall back to `TCGETS` and
    `TCSETS` as needed.
    
    This approach preserves rustix's ability to support arbitrary speed values,
    while falling back as needed to support WSL.
    
    This is expected to fix crossterm-rs/crossterm#912.
    sunfishcode committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    e6ab6bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    623cf49 View commit details
    Browse the repository at this point in the history