VOGONS


First post, by DOOB

User metadata
Rank Newbie
Rank
Newbie

Hi,
I am a newbi to Dosbox, and encounted the same problem as with version 0.73 - inputting data into a fortran program:

Re: Problem with keyboard input to Fortran program :: 2010-3-11 @ 04:16 pm ripsaw8080
The problem is that the app reads from the console device with INT 21/3F and DOSBox uses the byte count in the CX register to control how many bytes are read, but real DOS doesn't pay attention to CX when reading from CON and only returns after a carriage return (documented in the interrupt list). CX is 1 when the read function is called, so DOSBox only returns the first key pressed, not everything entered and ended with a CR.

One year on, version 0.74 shows the same behaviour. I wonder, is there an option to develop an option to read data after the carriage return in the following versions? 😜

Thank you.
DooB

Reply 1 of 3, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

DOSBox is intended for games, and support for applications is often a secondary concern. If games relied on the specific behavior involved, it would probably be supported in DOSBox already. One thing you can do is boot real DOS in DOSBox, but then there are several virtualizers you could use if you go that far.

Also the op had left the thread so obviously wasn't that interested in getting it working in DOSBox.

If no one is interested in getting something working in DOSBox then there is no reason to fix it.

If you want to add support yourself the DOSBox source is available at sourceforge.

How To Ask Questions The Smart Way
Make your games work offline

Reply 2 of 3, by DOOB

User metadata
Rank Newbie
Rank
Newbie

Thank you, 🙁
Having looked at the sorce codes, I think firstly I need to try to launch real DOS.

Regards

DooB

Reply 3 of 3, by DOOB

User metadata
Rank Newbie
Rank
Newbie
DOOB wrote:

Thank you, 🙁
Having looked at the sorce codes, I think firstly I need to try to launch real DOS.

Regards

Successfully moved for Dosemu, leaving DosBox for applications launch in the future.

DooB