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

Input doesn't work on bash for Windows #79

Open
debuuu opened this issue Aug 8, 2016 · 4 comments
Open

Input doesn't work on bash for Windows #79

debuuu opened this issue Aug 8, 2016 · 4 comments

Comments

@debuuu
Copy link

debuuu commented Aug 8, 2016

Tried compiling and running the demos through the newly released bash on Ubuntu on Windows; compilation and running the demos worked fine, but input doesn't work. Seemingly holding down ctrl C + Q for a few seconds does trigger an exit on the keyboard demo, but it's not immediate.

I'm wondering what the problem is, and where in the code I might begin trying to fix it. I had a brief look at the event polling functions, but without any concrete idea what might be causing the issue I wasn't sure how to proceed. Any ideas?

@nsf
Copy link
Owner

nsf commented Aug 8, 2016

No idea, how do you run ubuntu on windows? Some virtual machine?

@debuuu
Copy link
Author

debuuu commented Aug 8, 2016

Ah, no, the new Linux subsystem that shipped in the latest Windows 10 update. https://blogs.msdn.microsoft.com/wsl/2016/07/08/bash-on-ubuntu-on-windows-10-anniversary-update/

@nsf
Copy link
Owner

nsf commented Aug 8, 2016

Oh I see, I keep autoupdating disabled on my windows 10 machine, have no idea when I have a chance to try it out. Don't know what it's doing and how.

Maybe you can ditch C and try https://github.com/nsf/termbox-go instead. It has native windows port. If that's an option.

@debuuu
Copy link
Author

debuuu commented Aug 8, 2016

I've used the Go version in the past, it is really good and I will surely use it again. Quite intrigued to see if I can debug this through the bash on Windows though, so will post if I figure anything out. Thanks for your responses anyway :)

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

2 participants