https://bugs.winehq.org/show_bug.cgi?id=49894
--- Comment #5 from Martin Storsjö martin@martin.st --- (In reply to Jacek Caban from comment #4)
Created attachment 68250 [details] 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.
Thanks! With this applied on current master, it seems to work in both configs.