VOGONS


First post, by lucky7456969

User metadata
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

Reply 1 of 1, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Sorry for disturbing. I can't run my Chinese demo program
But wonder why in this program
in the first post.
some big5 codes are recognized,
and half of them are distorted.
The normal flow would be
0) User installs eten, and eten starts intercepting interrupt 10h calls
1) User program writes an escape sequence in C
2) Eten intercepts all interrupt 10h calls by sitting on the head of the interrupt chain
3) Eten generates graphics
Don't know why my modifications to dosbox won't allow my demo program to run.
Any help please?
Thanks
Jack