How to clear the keyboard buffer (zx81 and z88dk)?

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
zx81ultra
Posts: 31
Joined: Thu Feb 13, 2020 4:19 am
Location: Bolivia

How to clear the keyboard buffer (zx81 and z88dk)?

Post by zx81ultra »

Hello,

I'm using Key = in_Inkey(); to read the keyboard on the zx81 with z88dk, what's the best method to clear the keyboard buffer ?

Thank you
Camilo Eid - ZX81
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: How to clear the keyboard buffer (zx81 and z88dk)?

Post by siggi »

The ZX81 does not have a keyboard buffer.
And the z88dk in_Inkey function is the equivalent to the BASIC INKEY$ function (scans directly the keyboard, no buffer)

HTH Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
Post Reply