eGUI Console Misbehaving

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

eGUI Console Misbehaving

跳至解决方案
887 次查看
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

标签 (1)
0 项奖励
回复
1 解答
736 次查看
wcc3
Contributor II

NVM.

 

Programmer error.

 

Will

在原帖中查看解决方案

0 项奖励
回复
1 回复
737 次查看
wcc3
Contributor II

NVM.

 

Programmer error.

 

Will

0 项奖励
回复