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

@ -37,7 +37,6 @@ private:
void ClearAnsi(void);
void Output(Bit8u chr);
Bit8u readcache;
Bit8u lastwrite;
struct ansi { /* should create a constructor, which would fill them with the appropriate values */
bool esc;
bool sci;
@ -136,13 +135,11 @@ bool device_CON::Write(Bit8u * data,Bit16u * size) {
Output(' ');
col=CURSOR_POS_COL(page);
} while(col%8);
lastwrite = data[count++];
count++;
continue;
} else {
/* Some sort of "hack" now that '\n' doesn't set col to 0 (int10_char.cpp old chessgame) */
if((data[count] == '\n') && (lastwrite != '\r')) Output('\r');
Output(data[count]);
lastwrite = data[count++];
count++;
continue;
}
}
@ -411,7 +408,6 @@ Bit16u device_CON::GetInformation(void) {
device_CON::device_CON() {
SetName("CON");
readcache=0;
lastwrite=0;
ansi.enabled=false;
ansi.attr=0x7;
ansi.saverow=0;