1
0
Fork 0

Buffered input fix for dual enter press.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@106
This commit is contained in:
Sjoerd van der Berg 2002-07-31 11:46:27 +00:00
parent 77da180405
commit 92105f3caf

View file

@ -121,11 +121,9 @@ static Bitu DOS_21Handler(void) {
while (read<free) {
DOS_ReadFile(STDIN,&c,&n);
DOS_WriteFile(STDOUT,&c,&n);
if (c==13) {
DOS_ReadFile(STDIN,&c,&n);
break;
}
mem_writeb(data+read+2,c);
if (c==13)
break;
read++;
};
mem_writeb(data+1,read);