-
Notifications
You must be signed in to change notification settings - Fork 63
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
Does not seem to work with pseudo-terminals on OS X #53
Comments
@TechnoSam I'm sorry to hear it's not working for you. I'm able to use PTYs successfully on OS X, so I need more details in order to reproduce your issue. Would you mind providing the following details?
I need to be able to reproduce the issue before I can do anything about it. Based on your description, I'm not even sure what bug to look for. |
Ah yes, that was a failure on my part. OS is macOS 10.12.6. I'm not aware of any out of the ordinary configurations. Here is my
My attempt:
On the rust terminal, I see:
On the With backtrace:
So it looks like it's failing to open. If I change it to connect to I'm happy to try anything else or provide you with more info. Thanks for getting back to me! |
@TechnoSam Thanks. I reproduced the issue. I'll see if I can get to the bottom of what's happening. Another way to connect two PTYs that you may consider using as a workaround until I've fixed this is to use socat:
That will print out the paths to two connected PTY devices. Your procedure works with PTYs created by let mut buf: Vec<u8> = vec![]; That line allocates an empty vector, so there's no memory available for I'm not sure why creating PTYs with |
Sweet, I will try Thanks for looking into this all the same! Also, thanks for catching the bug, I didn't realize it wouldn't resize. |
I tracked the issue down to
🤦♂️ (It does work with some devices though, because I've used USB to serial devices with my Macbook.) Thanks for reporting this issue. I'll look for another solution on OS X (I'm thinking |
I considered this library for a project, but I couldn't get it to work in my test environment using pseudo-terminals on OS X (e.g.
/dev/ptyp3
,/dev/ttyp3
).I was able to do what I needed just fine with pySerial, so I don't think my understanding of pseudo-terminals is lacking.
I have no idea if this would work for a real connection, but without a reliable way to test, I'd waste too much time. If this issue could be fixed, I may revisit the project.
The text was updated successfully, but these errors were encountered: