Skip to content

Available() does not work on macos #33

Description

@nicks

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions