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

Available() does not work on macos #33

Open
nicks opened this issue Jun 20, 2018 · 0 comments
Open

Available() does not work on macos #33

nicks opened this issue Jun 20, 2018 · 0 comments

Comments

@nicks
Copy link

nicks commented Jun 20, 2018

Available() delegates to TIocinq, which is stubbed out as a no-op.
https://github.com/pkg/term/blob/master/termios/termios_bsd.go#L81

Has anyone done evaluated what it would take to get it to work?

Seems like you might at least be able to do a select() call on the descriptor, to check if there's any data in the buffer (returning 1 or 0 would at least be marginally better than returning 0 all the time)

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

No branches or pull requests

1 participant