E r g e b n i s / R e s u l t
Report how many characters are in the keyboard buffer
B e s c h r e i b u n g / D e s c r i p t i o n
While the normal Open Access keyboard buffer is 64 characters long, it
would be possible to overflow it using the STRSTUFF and KEYSTUFF
routines.
Before stuffing a large string into the keyboard buffer it is a good
idea to check how much space remains. GETTAMT (get type ahead amount)
returns the amount of space free in the keyboard buffer.
S y n t a x
Code:
value = call('GETTAMT') P a r a m e t e r
There are no parameters for this procedure
R e t u r n s
An integer containing the amount of free space in the keyboard buffer.
B e i s p i e l / E x a m p l e
Code:
attach 'KEYBOARD'
a = call('GETTAMT') ! a contains 64
detach 'KEYBOARD' Q u e r v e r w e i s / C r o s s R e f e r e n c e
STRSTUFF
KEYSTUFF