diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index f4ef6840..e63ea6c5 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -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){