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:
parent
fdc5a06200
commit
31d7e74eac
2 changed files with 4 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue