Re: keyboard input using getc(0)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Asa wrote:
> 
>  Hi all, I am finding that after using an expression like "choice = getc(0)"
>  the next time getc(0) is called, it doesn't wait for the keystroke. Something
> 
> left in the keyboard buffer from the first call? 
> 
>  I did search the docs before posting, but couldn't find an answer. 
> 
> Thanks.

Hi

Run this after your getc

while get_key() != -1 do
end while
end procedure

or 

while getc() != -1 do
end while
end procedure

Chris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu