Skip to content

Conversation

slonopotamus
Copy link

@slonopotamus slonopotamus commented Jul 22, 2023

See #79


Note that this does NOT fully fix #79 because there is one more issue with master.getCurrent. For some reason, TIOCGETA ioctl returns ENOTTY. So, while it no longer crashes, it doesn't work properly.

@aymanbagabas
Copy link

Note that this does NOT fully fix #79 because there is one more issue with master.getCurrent. For some reason, TIOCGETA ioctl returns ENOTTY. So, while it no longer crashes, it doesn't work properly.

TIOCGETA should be called on the TTY slave not the PTY master. master.getCurrent always uses the PTY master to get the current termios

@slonopotamus
Copy link
Author

So, do you want to say that this library is fully broken? master doesn't have a pointer to slave fd, so almost all its methods that use tcget/tcset are not functional under macOS (and, possibly, FreeBSD)?

@aymanbagabas
Copy link

So, do you want to say that this library is fully broken? master doesn't have a pointer to slave fd, so almost all its methods that use tcget/tcset are not functional under macOS (and, possibly, FreeBSD)?

Of course not 😄 this library is actually pretty awesome and I use it every day!

It's just that I tested it with the slave fd and the tests passed just fine. So maybe it's a Darwin thing?

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.

console.NewPty panics on macOS
2 participants