eGUI Console Misbehaving

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eGUI Console Misbehaving

Jump to solution
519 Views
wcc3
Contributor II

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

Labels (1)
0 Kudos
Reply
1 Solution
368 Views
wcc3
Contributor II

NVM.

 

Programmer error.

 

Will

View solution in original post

0 Kudos
Reply
1 Reply
369 Views
wcc3
Contributor II

NVM.

 

Programmer error.

 

Will

0 Kudos
Reply