AnsweredAssumed Answered

eGUI Console Misbehaving

Question asked by William Colley on May 3, 2012
Latest reply on May 3, 2012 by William Colley

I send a string to the Console object and that works OK.

 

Then, I send a "\r\n" string to the Console object and the cursor doesn't go to the beginning of the next line.

 

Then, I send another string to the Console object and all heck breaks loose.

 

The second string ends up appended to the first one on the first line then the second string is displayed correctly on the second line.

 

It looks like this:

 

Test #0Test #1

Test #1_

 

The code that puts the strings "Test #0" and "Test #1" in looks like this:

 

void TextBoxWriteLine(D4D_CHAR*Str)

{

(void)D4D_CnslPutString((D4D_OBJECT_PTR)&MyScreen_Console,Str);

(void)D4D_CnslPutString((D4D_OBJECT_PTR)&MyScreen_Console,"\r\n");

}

 

What am I doing wrong here?

 

Will

Outcomes