1
0
Fork 0

readline considers 0x1b (esc) as a valid char now

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@564
This commit is contained in:
Peter Veenstra 2002-12-11 19:50:40 +00:00
parent 6f9f410ecf
commit fcb74411a9

View file

@ -50,7 +50,7 @@ emptyline:
n=1;
DOS_ReadFile(file_handle,&c,&n);
if (n>0) {
if (c>31)
if (c>31 || c==0x1b)
*cmd_write++=c;
}
} while (c!='\n' && n);