First post, by lucky7456969
lucky7456969
Offline
Rank
Oldbie
- Rank
- Oldbie
bool device_CON::Write(Bit8u * data,Bit16u * size) {
Bit16u count=0;
Bitu i;
Bit8u col,row;
Bit8u tempdata;
INT10_SetCurMode();
while (*size>count) {
/* Some sort of "hack" now that '\n' doesn't set col to 0 (int10_char.cpp old chessgame) */
if((data[count] == '\n') && (lastwrite != '\r')) Real_INT10_TeletypeOutputAttr('\r',ansi.attr,ansi.enabled);
/* pass attribute only if ansi is enabled */
Real_INT10_TeletypeOutputAttr(data[count],ansi.attr,ansi.enabled);
lastwrite = data[count++];
continue;
}
*size=count;
return true;
}
I've sorted of delete some source lines, in order to let ansi to be disabled.
But I've got some funny characters in eten graphics mode.
Maybe some codes are shifted, just being unsure