xilun / cbwin

Launch Windows programs from "Bash on Ubuntu on Windows" (WSL)
Other
327 stars 25 forks source link

Some inputted characters skipped in Docker interactive terminal #41

Open jelazos7 opened 7 years ago

jelazos7 commented 7 years ago

I've set up Docker for Windows to launch from cbwin via an alias wrun docker. Most docker commands work like a charm, but I see some issues with processing input in an interactive container:

image

As you can see, entering "echo hello" dropped various characters depending on how fast i type, seemingly. Really interesting is after i exit the container, the characters that were skipped get output to my prompt.

I've already had success with formatting Docker's stdout using the wcmd echo solution from https://github.com/xilun/cbwin/issues/37. Could there be a similar workaround for this issue?

Great tool by the way... soon I won't have a use case for cygwin!

xilun commented 7 years ago

Hello,

Thank you for your report!

Unfortunately, I have little control over which process the Windows Console directs the keyboard input to. I've attempted a few hacks both on the WSL and on the Win32 side, and they did not improve the situation.

Please note that the incoming Windows 10 Creator Update will ship with a new version of WSL that is able to natively launch .exe, and also that seems to be somehow better in regard to keyboard input to interactive Win32 console process launched from WSL, although maybe not perfect. (And I'm not even 100% sure about that, because I did not retested recently, and all the tests I did where in a VM, so given how non-deterministic this looks the behavior can very well be different on a real machine)

Cheers!