How can I flush the keyoard buffer?
The Superbasic Manual says:
When KEYROW is used, any characters in the type-ahead buffer are cleared, therefore, if you wish to avoid accidental input by the user of unwanted keys, you could use:
dummy = KEYROW(0): Quit$ = INKEY$(-1)
But this is not working for me in QPC or sQLux
Flush keyboard buffer
Re: Flush keyboard buffer
Could the FLUSH #channel keyword (TK2) be used. Can't remember if it is procedure or function. Possibly can only be used on file channels, not sure.
--
All things QL - https://dilwyn.theqlforum.com
All things QL - https://dilwyn.theqlforum.com
Re: Flush keyboard buffer
It can be used only on file channels.dilwyn wrote: Wed Jul 24, 2024 3:23 pm Could the FLUSH #channel keyword (TK2) be used. Can't remember if it is procedure or function. Possibly can only be used on file channels, not sure.
Re: Flush keyboard buffer
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO