-
Notifications
You must be signed in to change notification settings - Fork 40
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
Eliminate compiler warning. #11
Conversation
I think the handle can actually be eliminated from the return value of this function, and from the code in general ( If you'd like to make that change, would be cool. :-) Just eradicate the handle type and we'll see if it works. |
@withoutboats I think this is what you wanted. Would it also make sense to increment the major version on the |
So it turns out I was wrong about not needing Handle, sorry :-. Handle's drop implementation is necessary to close the tty when both the reader and writer are dropped (and not before). It also looks like I actually introduced a bug when I stopped using handle, and the set winsize ioctl is no longer being called. My double-bad! This is maybe why the bash prompt doesn't show up properly at first (which is a bug that didn't used to exist). So in order to merge this I need for you to bring Sorry for giving bad info earlier, forgot what my own code did. 😆
This isn't necessary since tty is checked into the repo and not on crates.io (the tty on crates.io is someone else's crate). All of these crates are being treated as pre-semver right now, and it would be very surprising and a little nuts if a project other than notty were depending on this tty crate. |
And I just realized that maybe I should have left the winsize code in also as a reference, let me know if that's the case. For what it's worth, I can run |
You might as well save all of the code on If you could do that and then squash it to one commit, I'll merge it in. Thanks so much! :-) |
Okay I just went with the original commit here. I opened another PR with the gtk window changes, including a handler for the window delete event that ensures the process will exit properly (previously it was hanging). |
Also, even without the |
You're right, the system will close file handles for killed processes, but if for example |
Eliminate compiler warning.
Ah, gotcha thanks for the explanation. |
I wanted to follow up that I have made it so that resizing the window correctly resizes the tty's windows with the |
No description provided.