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:
parent
77da180405
commit
92105f3caf
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue