Echo_Cmd API eats first character???

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 30, 2008
122
1
#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
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#2
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
 
May 30, 2008
122
1
#3
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.