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

Plans to make it work on Windows? #26

Open
mike-code opened this issue Jun 22, 2018 · 5 comments
Open

Plans to make it work on Windows? #26

mike-code opened this issue Jun 22, 2018 · 5 comments

Comments

@mike-code
Copy link

as topic says

@mafredri
Copy link
Owner

There are no plans at the moment. But I know async has been used on Windows (with varying degrees of success), and it should (maybe) work if zsh works. It would be great to know what you tried and what problems you encountered.

@agkozak
Copy link
Contributor

agkozak commented Jun 23, 2018

zsh-async works perfectly, as far as I know, in WSL. It doesn't work in Cygwin or MSys2 because zpty doesn't work.

My prompt agkozak-zsh-theme uses zsh-async with a fallback to a TRAPUSR1()-based method when that won't work. It works in all the Windows contexts that I've tried it with.

@mafredri
Copy link
Owner

@agkozak thanks for your input! I've heard reports of zsh-async working (somewhat?) in Babun, but I can't really confirm this, and it might have been unreliable.

We might be able to fall-back to the method suggested in #24 (or implement it as an alternative async backend) on Windows. If it works, it should be more reliable than using kill-signals.

@borekb
Copy link

borekb commented Jul 6, 2018

It seems that more and more prompts are starting to implement asynchronicity via zsh-async which makes us, stuck with MSYS2, suffer quite a bit :) Would be awesome if some fallback was implemented.

@borekb
Copy link

borekb commented Jul 6, 2018

Just occurred to me that even synchronous fallback (if technically possible) would be better than (zpty):zpty:12: can't open pseudo terminal: bad file descriptor, IMO. Sounds like a terrible idea though.

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

No branches or pull requests

4 participants