cbwin icon indicating copy to clipboard operation
cbwin copied to clipboard

Some inputted characters skipped in Docker interactive terminal

Open jelazos7 opened this issue 7 years ago • 1 comments

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!

jelazos7 avatar Mar 22 '17 10:03 jelazos7

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!

xilun avatar Mar 25 '17 14:03 xilun