http://bugs.winehq.org/show_bug.cgi?id=9178
--- Comment #8 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-08-14 19:03:14 --- Created an attachment (id=7591) --> (http://bugs.winehq.org/attachment.cgi?id=7591) patch
This is a preliminary patch that allows to run DOS programs from a Linux terminal or run them with redirected input. We can't use overlapped I/O as we don't control if the file is opened with FILE_FLAG_OVERLAPPED so I had to use a worker thread to read the input.
There are a few things that I'm not sure if they are correct - the scan codes, DOSVM_Wait may require similar changes, how it works with a VGA window. There is also a problem that an application might require things that are impossible to achieve on a terminal - e.g. move the cursor. Maybe we should allocate a console in such a situation.