1
0
Fork 0

Fix shell PAUSE command when reading extended keys, and make TYPE command more compatible by stopping at EOF byte.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3927
This commit is contained in:
ripsaw8080 2015-08-05 14:56:36 +00:00
parent b9cb003a62
commit 59c9ae1d60

View file

@ -944,6 +944,7 @@ nextfile:
do {
n=1;
DOS_ReadFile(handle,&c,&n);
if (c==0x1a) break; // stop at EOF
DOS_WriteFile(STDOUT,&c,&n);
} while (n);
DOS_CloseFile(handle);
@ -958,7 +959,8 @@ void DOS_Shell::CMD_PAUSE(char * args){
HELP("PAUSE");
WriteOut(MSG_Get("SHELL_CMD_PAUSE"));
Bit8u c;Bit16u n=1;
DOS_ReadFile (STDIN,&c,&n);
DOS_ReadFile(STDIN,&c,&n);
if (c==0) DOS_ReadFile(STDIN,&c,&n); // read extended key
}
void DOS_Shell::CMD_CALL(char * args){