https://bugs.winehq.org/show_bug.cgi?id=49894
--- Comment #4 from Jacek Caban jacek@codeweavers.com --- Created attachment 68250 --> https://bugs.winehq.org/attachment.cgi?id=68250 patch
It's possible to redirect only stderr. This is enough for logs, while cmd will use stdout. I can reproduce the problem with enter by setting an invalid DISPLAY.
The problem of pressing enter is that we use VkKeyScanW in this case to find virtual key code, which fails without a display driver. The attached patch fixes that. We could consider better support for VkKeyScanW in null driver or maybe not even go through display driver in cases like \r.