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

Create a cross platform pty crate #2079

Open
prabirshrestha opened this issue Feb 5, 2019 · 5 comments
Open

Create a cross platform pty crate #2079

prabirshrestha opened this issue Feb 5, 2019 · 5 comments

Comments

@prabirshrestha
Copy link

Would it be possible to publish the pty module as a crate that can be reused by other programs.

I haven’t seen any cross platform pty crate that works on Linux, Windows and Mac.

@chrisduerr
Copy link
Member

I'm not aware of any concrete issue with why we wouldn't be able to do this, though the use case outside of Alacritty might be limited.

PRs would be very welcome in this regard, if anyone is in need for a PTY crate and was able to make Alacritty's abstractions work. This would also show that it's in demand and that Alacritty's PTY API is useful to other projects.

@zacps
Copy link
Contributor

zacps commented Feb 8, 2019

@zacps
Copy link
Contributor

zacps commented Oct 5, 2019

I happen to have found a use for this in one of my projects. As it stands, the api isn't too dependant on the rest of alacritty, it's mostly just configuration that would need to be pulled out of the tty module.

That said the current API is mio based, while what I (and probably most others) want is something tokio based.

I might look at making this happen after the current async ecosystem stabilizes a bit.

@prabirshrestha
Copy link
Author

@nixpulvis
Copy link
Contributor

@zacps I took am planning on using Tokio myself for another project, I'll be curious how things go for you. IIRC @chrisduerr started some work in Alacritty using tokio as well in #1512, though I'm unsure how it would all play together with the other event code we have.

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

No branches or pull requests

4 participants