> haven't tried so, and perhaps there's a way of getting the keyboardsize
> before setting to 0, so as to restore that value instead of 16
It is not documented in the Norton Guide (5.2 or 5.3) but
#define _SET_TYPEAHEAD 14
exists in set.ch. In the entry for the SET TYPEAHEAD command the size is
documented as being minimum 16, but when I test it with
? set( _SET_TYPEAHEAD )
it prints 15. Interesting :-)
Regards,
Klas
On Sep 20, 5:37 am, Scott Coffey <n...@noemail.com.invalid> wrote:
...
> And now the "clear typeahead" works perfectly
> after the one second wait. I have no idea why,
> and that pisses me off. :)
Let me offer that a similar loop...
FOR nLoop = 1 TO 10
if inkey(0.1) <> 0
EXIT
ENDIF
NEXT
CLEAR TYPEAHEAD
I'd just figure it was Windoze way of not losing data input to another
command session (just like it has its own environment, it will have
its own keyboard buffer), and figuring you needed it, and transfer of
the characters is a background task.
Is anything different if you RUN the program instead? (other than not
having optimizations to give the program enough memory.)
David A. Smith
Hi Steve,
If you look at the original post, that's exactly where the 'clear
typeahead' was placed... as the next instruction following the
'swpruncmd' command. And it failed miserably.
Out of curiosity though, why do you prefer the inkey() loop over
'clear typeahead'? In my mind, 'clear typeahead' is the most obvious
and readable code, since what we're trying to achieve is to clear the
keyboard buffer.