1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Echo_Cmd API eats first character???

Discussion in 'Plugins' started by p.f.moore, Jul 28, 2008.

  1. p.f.moore

    Joined:
    May 30, 2008
    Messages:
    122
    Likes Received:
    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
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,859
    Likes Received:
    83
    p.f.moore wrote:

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

    Rex Conn
    JP Software
     
  3. p.f.moore

    Joined:
    May 30, 2008
    Messages:
    122
    Likes Received:
    1
    2008/7/28 rconn <>:

    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.
     

Share This Page