Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Echo_Cmd API eats first character???

May
120
1
Running Echo_Cmd(L"Hello") in a plugin displays "ello". And yet,
Echo_Cmd(L" Hello") displays " Hello". It looks like the command eats
*precisely* one character.

And yet, other API functions like Delay_Cmd do not.

Bug, (extremely bizarre) feature, or what?

Paul
 
p.f.moore wrote:

> Running Echo_Cmd(L"Hello") in a plugin displays "ello". And yet,
> Echo_Cmd(L" Hello") displays " Hello". It looks like the command eats
> *precisely* one character.
>
> And yet, other API functions like Delay_Cmd do not.
>
> Bug, (extremely bizarre) feature, or what?

Feature, because people want to do things like "echo." to print a blank
line.

Rex Conn
JP Software
 
2008/7/28 rconn <>:

> Feature, because people want to do things like "echo." to print a blank
> line.

Hmm, I always assumed echo. was an explicit special case. And I see
that CMD does the same. OK, I was right, it's a very bizarre feature,
but the bizarreness is CMD's, not yours...

Thanks for the explanation.
Paul.
 
Back
Top