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:
parent
b9cb003a62
commit
59c9ae1d60
1 changed files with 3 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue