1
0
Fork 0

It is more compatible with DOS to not insert carriage returns in the console device.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4114
This commit is contained in:
ripsaw8080 2018-06-12 20:04:10 +00:00
parent fdc5a06200
commit 31d7e74eac
2 changed files with 4 additions and 6 deletions

View file

@ -223,6 +223,7 @@ void DOS_Shell::InputCommand(char * line) {
/* Don't care */
break;
case 0x0d: /* Return */
outc('\r');
outc('\n');
size=0; //Kill the while loop
break;
@ -322,6 +323,7 @@ void DOS_Shell::InputCommand(char * line) {
case 0x1b: /* ESC */
//write a backslash and return to the next line
outc('\\');
outc('\r');
outc('\n');
*line = 0; // reset the line.
if (l_completion.size()) l_completion.clear(); //reset the completion list.