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

Prefer select() over poll() on macos for ttys #169

Merged
merged 1 commit into from
May 18, 2023
Merged

Conversation

mitsuhiko
Copy link
Collaborator

Turns out that polling on ttys does not work on macos. This now falls back to select if a tty is detected.

Fixes #168

@mitsuhiko mitsuhiko merged commit 66cb2aa into master May 18, 2023
15 checks passed
@mitsuhiko mitsuhiko deleted the feature/select-tty branch May 18, 2023 10:22
@ioquatix
Copy link

kqueue works according to my own tests, but only on modern (past few years) releases of the OS. Before that, there were a lot of issues.

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.

read_key goes into an endless loop and eventually exhausts file handles
2 participants